Constructors
Protected
constructor
- new default(__namedParameters: { debug?: boolean }): <internal>.default
-
Parameters
-
__namedParameters: { debug?: boolean }
Methods
connect
- connect(onMessage: ((message: any, origin: string, source: any) => void), onDisconnect: (() => void)): void
-
Parameters
-
onMessage: ((message: any, origin: string, source: any) => void)
-
- (message: any, origin: string, source: any): 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
Protected
receiveMessage
- receiveMessage(message: any): void
-
Returns void
sendMessage
- sendMessage(message: any): void
-
Returns void
Browser connection base interface