src/components/kendoUI/baseComponents/background-worker/background-worker.component.ts
selector | wm-background-worker |
Properties |
|
Methods |
|
Inputs |
Outputs |
constructor(wmService: WebMapService)
|
||||||
Parameters :
|
retries |
Type : number
|
Default value : 2
|
url |
Type : string
|
Default value : '/bgw'
|
Input of background worker component url |
MessageReceived |
Type : EventEmitter<any>
|
Private connectionStart |
connectionStart()
|
Connections start Creates a new open connection
Returns :
void
|
Private InitMessageHandler |
InitMessageHandler()
|
Inits message handler Adds Handler for the Socket messages
Returns :
void
|
Private MessageReceivedCallback | ||||||||
MessageReceivedCallback(response: any)
|
||||||||
Messages received callback A callback to add a custom handler for the server side response
Parameters :
Returns :
void
|
ngOnInit |
ngOnInit()
|
on init Initialize the socket connection for the background worker component
Returns :
void
|
Private SendMessageSimpleCommand | |||||||||
SendMessageSimpleCommand(actionName: string, parameters: any[])
|
|||||||||
Send socket messages
Parameters :
Returns :
void
|
Private connection |
Type : HubConnection
|