Properties
IsConnected
IsConnected: boolean
SendMessage
SendMessage: ((base) => void)
Type declaration
-
- (base): void
-
Returns void
SetUserId
SetUserId: ((userId) => void)
Type declaration
-
- (userId): void
-
Returns void
Subscribe
Subscribe: ((topic, callback, type?) => void)
Type declaration
-
- (topic, callback, type?): void
-
Parameters
-
topic: string
-
callback: ((msg) => void)
-
Returns void
Unsubscribe
Unsubscribe: ((topic, callback) => void)
Type declaration
-
- (topic, callback): void
-
Parameters
-
topic: string
-
callback: ((msg) => void)
Returns void
Send message to server.