Constructors
Protected
constructor
- new default(__namedParameters): default
-
Parameters
-
__namedParameters: {
debug?: boolean;
}
Methods
connect
- connect(onMessage, onDisconnect): void
-
Parameters
-
onMessage: ((message, origin, source) => 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