B4A Library SecureWebSocket Client Library

Attachments

  • SecureWebSocket-1.0.zip
    42.5 KB · Views: 516
Last edited:

woniol

Active Member
Licensed User
Longtime User
Do I need to change something in server config?
I just replaced WebSocket with SecureWebsocket Class in my project and I get:

Conneting to WS server at: wss://xx.xx.xxx.xxx:8888/ws
WSHEnandler: WebSockets internal error (java.lang.NullPointerException)
Disconnected from WS server: WebSockets internal error (java.lang.NullPointerException)


the:
WebSockets internal error (java.lang.NullPointerException)
comes form ws_Closed event
 

daemon

Active Member
Licensed User
Longtime User
I too have faced this issue. It seems this code supports wss:// connections only to default port (443).

I have tested it working with wss://echo.websocket.org.
 

woniol

Active Member
Licensed User
Longtime User
Works fine with wss://echo.websocket.org

Looks like it needs some config on server side.
 

daemon

Active Member
Licensed User
Longtime User
May be. It works on heroku as well, without any specific configuration.
 

daemon

Active Member
Licensed User
Longtime User
Top