芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/joolsmen.com/chat/vendor/cboden/ratchet/src/Ratchet/WebSocket/WsConnection.php
WebSocket->closing) { if (!($msg instanceof DataInterface)) { $msg = new Frame($msg); } $this->getConnection()->send($msg->getContents()); } return $this; } /** * @param int|\Ratchet\RFC6455\Messaging\DataInterface */ public function close($code = 1000) { if ($this->WebSocket->closing) { return; } if ($code instanceof DataInterface) { $this->send($code); } else { $this->send(new Frame(pack('n', $code), true, Frame::OP_CLOSE)); } $this->getConnection()->close(); $this->WebSocket->closing = true; } }