Ensure on and emit are bound to worker.port