WorkerSocket.master(ReceivePort receiver)

Source

WorkerSocket.master(this.receiver) : isWorker = false {
  receiver.listen(handleData);
}