WebSocketDataChannel
Extends:
Constructor Summary
Public Constructor | ||
public |
constructor(ws: WebSocket) |
Member Summary
Public Members | ||
public get |
readyState: DataChannel.ReadyState |
Inherited Summary
From class Observable | ||
public static get |
WILDCARD: string: string |
|
public |
bubble(observable: Observable, types: ...string) |
|
public |
fire(type: string, args: ...*): Promise | null |
|
public |
off(type: string, id: number) |
|
public |
on(type: string, callback: Function): number |
From class DataChannel | ||
public get |
lastMessageReceivedAt: number |
|
public get abstract |
readyState: DataChannel.ReadyState |
|
public abstract |
close() |
|
public |
confirmExpectedMessage(type: Message.Type, success: boolean) |
|
public |
expectMessage(types: Message.Type | Array<Message.Type>, timeoutCallback: function(), msgTimeout: number, chunkTimeout: number) |
|
public |
isExpectingMessage(type: Message.Type): boolean |
|
public |
send(msg: Uint8Array) |
|
public abstract |
sendChunk(msg: Uint8Array) |
|
protected |
_onClose() |
|
protected |
_onMessage(msg: ArrayBuffer) |
Public Constructors
public constructor(ws: WebSocket) source
Override:
DataChannel#constructorParams:
Name | Type | Attribute | Description |
ws | WebSocket |
Public Members
Public Methods
public sendChunk(msg: Uint8Array) source
Override:
DataChannel#sendChunkParams:
Name | Type | Attribute | Description |
msg | Uint8Array |