Class SharedWorkerMessageRouter
Hierarchy
SharedWorkerMessageRouter
Constructors
constructor
Defined in internal/webworker/client/shared-workers.ts:31
Parameters
Properties
Private listeners
listeners: object
Defined in internal/webworker/client/shared-workers.ts:31
Type declaration
[ sessionName: string ]: Array < function >
Private worker
Defined in internal/webworker/client/shared-workers.ts:26
Methods
addListener
addListener( sessionName: string , listener: function ) : void
Defined in internal/webworker/client/shared-workers.ts:62
Parameters
sessionName: string
listener: function
( command: string , ... messages: any [] ) : void
Parameters
command: string
Rest ... messages: any []
Returns void
Returns void
getWorker
Defined in internal/webworker/client/shared-workers.ts:52
the shared worker
removeListener
removeListener( sessionName: string , listener: function ) : void
Defined in internal/webworker/client/shared-workers.ts:77
Parameters
sessionName: string
listener: function
( command: string , ... messages: any [] ) : void
Parameters
command: string
Rest ... messages: any []
Returns void
Returns void
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
A message router is responsible for receiving messages from a shared worker and passing them on to the correct connectors. Each named client session will register one connector.