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('Server Terminated.'); else Log::emergency('Uncaught Message: '.$e->getMessage()); } } }