File

src/components/kendoUI/baseComponents/background-worker/background-worker.component.ts

Implements

OnInit

Metadata

Index

Properties
Methods
Inputs
Outputs

Constructor

constructor(wmService: WebMapService)
Parameters :
Name Type Optional
wmService WebMapService No

Inputs

retries
Type : number
Default value : 2
url
Type : string
Default value : '/bgw'

Input of background worker component url

Outputs

MessageReceived
Type : EventEmitter<any>

Methods

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 :
Name Type Optional Description
response any No

The server side response json

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 :
Name Type Optional
actionName string No
parameters any[] No
Returns : void

Properties

Private connection
Type : HubConnection
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""