Constructors
constructor
- new SocketWrapper(url: string, messageHandler: function, errorHandler: function, openHandler?: undefined | function, closeHandler?: undefined | function, timeout?: number): SocketWrapper
-
Parameters
-
url: string
-
messageHandler: function
-
errorHandler: function
-
Optional openHandler: undefined | function
-
Optional closeHandler: undefined | function
-
Default value timeout: number = 10000
Properties
connected
connected: Promise<void>
Methods
send
- send(data: string): Promise<void>
-
Parameters
Returns Promise<void>
A thin wrapper around isomorphic-ws' WebSocket class that adds