This PR aims to allow for more customization of the WebSocket class used by the client to establish connection.
When use on Node, one will probably want to use ws package as the WebSocket implementation. But currently, the API doesn't allow to pass any additional options to the WebSocket constructor.
This PR adds an option webSocketOpts that will be passed as a third argument to WebSocket constructor when a custom implementation has been provided.
This PR aims to allow for more customization of the WebSocket class used by the client to establish connection.
When use on Node, one will probably want to use
ws
package as theWebSocket
implementation. But currently, the API doesn't allow to pass any additional options to theWebSocket
constructor.This PR adds an option
webSocketOpts
that will be passed as a third argument toWebSocket
constructor when a custom implementation has been provided.