예제 #1
0
파일: Bot.php 프로젝트: Mailclark/bot2hook
 public function clientSendPing()
 {
     if (!empty($this->client) && $this->client->getState() == WebSocketClient::STATE_CONNECTED) {
         $this->client->sendFrame(WebSocketFrame::create(WebSocketOpcode::PingFrame));
         return true;
     }
     return false;
 }