Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed Jan 7, 2019
1 parent 432c59f commit 4597c40
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,7 @@ private function registerDefaultCallBack(\swoole_server $server,int $serverType)
});

if($serverType == EASYSWOOLE_WEB_SOCKET_SERVER){
$server->on('message',function (\swoole_websocket_server $server, \swoole_websocket_frame $frame){
EasySwooleEvent::onMessage($server,$frame);
ServerManager::getInstance()->getMainEventRegister()->add(EventRegister::onMessage,function (){
ContextManager::getInstance()->destroy();
});
}
Expand Down

0 comments on commit 4597c40

Please sign in to comment.