You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[RatchetServerExample.php](https://github.com/Askedio/laravel-ratchet/blob/master/src/RatchetServerExample.php) is the default class used for the Ratchet Server, a basic echo server. Here is another example:
26
+
[RatchetServerExample.php](https://github.com/Askedio/laravel-ratchet/blob/master/src/RatchetServerExample.php), a basic echo server, is used when you do not define a class. Here is another example:
27
27
~~~
28
28
<?php
29
29
30
30
namespace App;
31
31
32
32
use Ratchet\ConnectionInterface;
33
+
use Askedio\LaravelRatchet\RatchetServer;
33
34
34
-
class RatchetServer extends \Askedio\LaravelRatchet\RatchetServer
35
+
class RatchetServer extends RatchetServer
35
36
{
36
37
public function onMessage(ConnectionInterface $conn, $input)
37
38
{
@@ -51,10 +52,15 @@ class RatchetServer extends \Askedio\LaravelRatchet\RatchetServer
51
52
~~~
52
53
You'll need to change the class to `App\RatchetServer::class` in your command line or config.
0 commit comments