@@ -66,8 +66,6 @@ public function onOpen(ConnectionInterface $conn)
66
66
$ this ->conn = $ conn ;
67
67
68
68
$ this ->attach ()->throttle ()->limit ();
69
-
70
- event ('ratchetOpen ' , $ this ->conn );
71
69
}
72
70
73
71
private function attach ()
@@ -143,7 +141,6 @@ private function isThrottled($conn, $setting)
143
141
public function onMessage (ConnectionInterface $ conn , $ input )
144
142
{
145
143
$ this ->console ->comment (sprintf ('Message from %d: %s ' , $ conn ->resourceId , $ input ));
146
- event ('ratchetMessage ' , [$ conn , $ input ]);
147
144
148
145
if ($ this ->isThrottled ($ conn , 'onMessage ' )) {
149
146
$ this ->console ->info (sprintf ('Message throttled: %d ' , $ conn ->resourceId ));
@@ -167,7 +164,6 @@ public function onClose(ConnectionInterface $conn)
167
164
{
168
165
$ this ->clients ->detach ($ conn );
169
166
$ this ->console ->error (sprintf ('Disconnected: %d ' , $ conn ->resourceId ));
170
- event ('ratchetClose ' , $ conn );
171
167
}
172
168
173
169
/**
@@ -183,7 +179,6 @@ public function onError(ConnectionInterface $conn, \Exception $exception)
183
179
$ message = $ exception ->getMessage ();
184
180
$ conn ->close ();
185
181
$ this ->console ->error (sprintf ('Error: %s ' , $ message ));
186
- event ('ratchetError ' , [$ conn , $ message ]);
187
182
}
188
183
189
184
/**
0 commit comments