CentralMaster

CentralMaster

Countly master process, just pass through messages to specific pid in to field of message

Constructor

new CentralMaster()

Source:

Methods

attach(f)

Source:

Start handling forks and incoming IPC messages

Parameters:
Name Type Description
f function

function to all with every new worker

send(pid, data)

Source:

Send data to a single worker or multicast to all of them.

Parameters:
Name Type Description
pid Number | String

worker process id

data Any

data to send