Methods
attach(f)
- Description:
Start handling forks and incoming IPC messages
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
f |
function | function to all with every new worker |
detach()
- Description:
Detach IPC request listener
- Source:
send(pid, data)
- Description:
Send data to a single worker or multicast to all of them.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
pid |
Number | String | worker process id |
data |
Any | data to send |