Skip to main content

isConnected

method Worker.prototype.isConnected
Jump to headingWorker.prototype.isConnected(): boolean

This function returns true if the worker is connected to its primary via its IPC channel, false otherwise. A worker is connected to its primary after it has been created. It is disconnected after the 'disconnect' event is emitted.

Return Type Jump to heading

boolean
Back to top