diff --git a/README.md b/README.md index 6e6f111..b079a8b 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ Replace `/home/forge/app.com/` with the path to your application. sudo cat < /etc/supervisor/conf.d/laravel-ratchet.conf [program:laravel-ratchet] process_name=%(program_name)s_%(process_num)02d -command=php /home/forge/app.com/artisan ratchet:serve +command=php /home/forge/app.com/artisan ratchet:serve -q autostart=true autorestart=true user=vagrant diff --git a/src/RatchetServer.php b/src/RatchetServer.php index 6213ff0..b9b489d 100644 --- a/src/RatchetServer.php +++ b/src/RatchetServer.php @@ -66,8 +66,6 @@ public function onOpen(ConnectionInterface $conn) $this->conn = $conn; $this->attach()->throttle()->limit(); - - event('ratchetOpen', $this->conn); } private function attach() @@ -143,7 +141,6 @@ private function isThrottled($conn, $setting) public function onMessage(ConnectionInterface $conn, $input) { $this->console->comment(sprintf('Message from %d: %s', $conn->resourceId, $input)); - event('ratchetMessage', [$conn, $input]); if ($this->isThrottled($conn, 'onMessage')) { $this->console->info(sprintf('Message throttled: %d', $conn->resourceId)); @@ -167,7 +164,6 @@ public function onClose(ConnectionInterface $conn) { $this->clients->detach($conn); $this->console->error(sprintf('Disconnected: %d', $conn->resourceId)); - event('ratchetClose', $conn); } /** @@ -183,7 +179,6 @@ public function onError(ConnectionInterface $conn, \Exception $exception) $message = $exception->getMessage(); $conn->close(); $this->console->error(sprintf('Error: %s', $message)); - event('ratchetError', [$conn, $message]); } /**