WebSocket Client

The native environment supports the Web Standard WebSocket interface.

Differences

Prior to version 3.5, the WebSocket API on Android and Windows was implemented using libwebsockets. It requires the developer to specify the CA file path with the third parameter.

this.wsInstance = new WebSocket('wss://echo.websocket.org', [], caURL);
`

See demo code. CA certificates can be downloaded from here.

After version 3.5, certificates are no longer mandatory on Android.

results matching ""

    No results matching ""