function sendMessageToPool(\CharlotteDunois\Phoebe\Message $message) {
        if(static::$socket) {
            $data = \CharlotteDunois\Phoebe\Socket::encodeMessage($message);
            static::$socket->write($data);
        } else {
            $this->messagesOut[] = $message;
        }
    }
function sendMessageToPool(\CharlotteDunois\Phoebe\Message $message) {
        if(static::$socket) {
            $data = \CharlotteDunois\Phoebe\Socket::encodeMessage($message);
            static::$socket->write($data);
        } else {
            $this->messagesOut[] = $message;
        }
    }
function sendMessageToPool ( \ CharlotteDunois \ Phoebe \ Message $ message ) { if ( static :: $ socket ) { $ data = \ CharlotteDunois \ Phoebe \ Socket :: encodeMessage ( $ message ) ; static :: $ socket -> write ( $ data ) ; } else { $ this -> messagesOut [ ] = $ message ; } }
Sends a message to the pool. Only usable in the worker thread.
@param \CharlotteDunois\Phoebe\Message  $message
@return void
@codeCoverageIgnore
Sends a message to the pool . Only usable in the worker thread .