morozovsk\websocket\Daemon::sendToClient PHP Method

sendToClient() protected method

protected sendToClient ( $connectionId, $data, $type = 'text' )
    protected function sendToClient($connectionId, $data, $type = 'text')
    {
        if (!isset($this->_handshakes[$connectionId])) {
            $this->_write($connectionId, $this->_encode($data, $type));
        }
    }