public function sendFrame(IWebSocketFrame $frame) { if ($this->_socket->write($frame->encode()) === false) { return FALSE; } }