Properties
Readonly closeEvent
closeEvent: { addEventListener: (callback: (...args: [error?: Error]) => void) => () => void; waitForNext: () => Promise<[error?: Error]> } = ...
Type declaration
addEventListener: (callback: (...args: [error?: Error]) => void) => () => void
- (callback: (...args: [error?: Error]) => void): () => void
Parameters
callback: (...args: [error?: Error]) => void
- (...args: [error?: Error]): void
Parameters
Rest ...args: [error?: Error]
Returns void
Returns () => void
waitForNext: () => Promise<[error?: Error]>
- (): Promise<[error?: Error]>
Returns Promise<[error?: Error]>
Readonly messageEvent
messageEvent: { addEventListener: (callback: (...args: [message: WampMessage]) => void) => () => void; waitForNext: () => Promise<[message: WampMessage]> } = ...
Type declaration
addEventListener: (callback: (...args: [message: WampMessage]) => void) => () => void
- (callback: (...args: [message: WampMessage]) => void): () => void
Parameters
callback: (...args: [message: WampMessage]) => void
- (...args: [message: WampMessage]): void
Parameters
Rest ...args: [message: WampMessage]
Returns void
Returns () => void
waitForNext: () => Promise<[message: WampMessage]>
- (): Promise<[message: WampMessage]>
Returns Promise<[message: WampMessage]>
Readonly openEvent
openEvent: { addEventListener: (callback: (...args: []) => void) => () => void; waitForNext: () => Promise<[]> } = ...
Type declaration
addEventListener: (callback: (...args: []) => void) => () => void
- (callback: (...args: []) => void): () => void
Parameters
callback: (...args: []) => void
Returns () => void
waitForNext: () => Promise<[]>
For use internally within the library