Interface WebSocketBehavior
Properties
Optional close
close: function
Type declaration
-
- (ws: WebSocket, code: number, message: ArrayBuffer): void
-
Parameters
-
-
code: number
-
message: ArrayBuffer
Returns void
Optional compression
compression: number
Optional drain
drain: function
Optional idleTimeout
idleTimeout: number
Optional maxPayloadLength
maxPayloadLength: number
Optional message
message: function
Type declaration
-
- (ws: WebSocket, message: ArrayBuffer, isBinary: boolean): void
-
Parameters
-
-
message: ArrayBuffer
-
isBinary: boolean
Returns void
Optional open
open: function
A structure holding settings and handlers for a WebSocket route handler.