Skip to content

Commit 6dff110

Browse files
committed
events
1 parent 7180019 commit 6dff110

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Replace `/home/forge/app.com/` with the path to your application.
122122
sudo cat <<EOF > /etc/supervisor/conf.d/laravel-ratchet.conf
123123
[program:laravel-ratchet]
124124
process_name=%(program_name)s_%(process_num)02d
125-
command=php /home/forge/app.com/artisan ratchet:serve
125+
command=php /home/forge/app.com/artisan ratchet:serve -q
126126
autostart=true
127127
autorestart=true
128128
user=vagrant

src/RatchetServer.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ public function onOpen(ConnectionInterface $conn)
6666
$this->conn = $conn;
6767

6868
$this->attach()->throttle()->limit();
69-
70-
event('ratchetOpen', $this->conn);
7169
}
7270

7371
private function attach()
@@ -143,7 +141,6 @@ private function isThrottled($conn, $setting)
143141
public function onMessage(ConnectionInterface $conn, $input)
144142
{
145143
$this->console->comment(sprintf('Message from %d: %s', $conn->resourceId, $input));
146-
event('ratchetMessage', [$conn, $input]);
147144

148145
if ($this->isThrottled($conn, 'onMessage')) {
149146
$this->console->info(sprintf('Message throttled: %d', $conn->resourceId));
@@ -167,7 +164,6 @@ public function onClose(ConnectionInterface $conn)
167164
{
168165
$this->clients->detach($conn);
169166
$this->console->error(sprintf('Disconnected: %d', $conn->resourceId));
170-
event('ratchetClose', $conn);
171167
}
172168

173169
/**
@@ -183,7 +179,6 @@ public function onError(ConnectionInterface $conn, \Exception $exception)
183179
$message = $exception->getMessage();
184180
$conn->close();
185181
$this->console->error(sprintf('Error: %s', $message));
186-
event('ratchetError', [$conn, $message]);
187182
}
188183

189184
/**

0 commit comments

Comments
 (0)