WebSocket->version->frame($data, false); $this->getConnection()->send($data); } public function close() { // send close frame // ??? // profit $this->getConnection()->close(); // temporary } public function ping() { } public function pong() { } }