Methods
end
end( code: number , shortMessage: string | ArrayBuffer ) : WebSocket
Parameters
code: number
shortMessage: string | ArrayBuffer
getBufferedAmount
getBufferedAmount( ) : number
publish
publish( topic: string | ArrayBuffer , message: string | ArrayBuffer ) : WebSocket
Parameters
topic: string | ArrayBuffer
message: string | ArrayBuffer
send
send( message: string | ArrayBuffer , isBinary: boolean , compress: boolean ) : boolean
Parameters
message: string | ArrayBuffer
isBinary: boolean
compress: boolean
Returns boolean
subscribe
subscribe( topic: string | ArrayBuffer ) : WebSocket
Parameters
topic: string | ArrayBuffer
unsubscribe
unsubscribe( topic: string | ArrayBuffer ) : WebSocket
Parameters
topic: string | ArrayBuffer
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
A WebSocket connection that is valid from open to close event