option('mode'))->firstOrFail(); $server = new SocketServer(config('app.port'),config('app.bind')); $server->init(); $server->setConnectionHandler([$mo->server(),'onConnect']); try { $server->listen(); } catch (SocketException $e) { if ($e->getMessage() == 'Can\'t accept connections: "Success"') Log::debug(sprintf('Server Terminated: %s',$mo->name)); else Log::emergency('Uncaught Message: '.$e->getMessage(),['name'=>$mo->name]); } } }