Constructors
Protected
constructor
- new default(__namedParameters): default
Parameters
- __namedParameters: {
debug?: boolean;
}
Properties
Methods
connect
- connect(onMessage, onDisconnect): void
Parameters
- onMessage: ((message: any, origin: string, source: any) => void)
- (message, origin, source): void
Parameters
- message: any
- origin: string
- source: any
Returns void
- onDisconnect: (() => void)
Returns void
disconnect
- disconnect(): void
Returns void
Abstract
isConnected
- isConnected(): boolean
Returns boolean
Is connected
Protected
receiveMessage
- receiveMessage(message): void
Returns void
sendMessage
- sendMessage(message): void
Returns void
Browser connection base interface