Object of class Ratchet\Wamp\WampConnection could not be converted to string
hi everyone, i am trying to make a command for ratchet push-server in laravel.
 i run the command and everything works fine but when i try to run client javascript this error is being display on the cmd 
**An Error has occurred: Object of class Ratchet\Wamp\WampConnection could not be converted to string**
any help please?
my laravel code 
```
<?php

namespace App\Console\Commands;

use Ratchet\Server\IoServer;
use Ratchet\Http\HttpServer;
use Ratchet\WebSocket\WsServer;

use App\Socket\Pusher;
use Illuminate\Console\Command;
use React\EventLoop\Factory as ReactLoop;
use React\ZMQ\Context as ReactContext;
use React\Socket\Server as ReactServer;
use Ratchet\Wamp\WampServer;


class PushServer extends Command
{
    protected $signature = 'pushServer:serve';

    protected $description = 'Command description';

    public function __construct()
    {
        parent::__construct();
    }

    public function handle()
    {
        $loop = ReactLoop::create();

        $pusher = new Pusher();
        $context = new ReactContext($loop);

        $pull = $context->getSocket(\ZMQ::SOCKET_PULL);
        $pull->bind('tcp://127.0.0.1:5555');

        $pull->on('message' ,[$pusher , 'broadcast']);

        $webSocket = new ReactServer('0.0.0.0:8080', $loop);
        $webServer = new IoServer(
            new HttpServer(
                new WsServer(
                    new WampServer(
                        $pusher
                    )
                )
            ),
            $webSocket
        );
        $this->info('Run Handle');
        $loop->run();
    }
}
```
my javascript code
```
var conn = new ab.Session('ws://localhost:8080',
            function() {
                conn.subscribe('onNewData', function(topic, data) {
                    console.log('New article published to category "' + topic + '" : ' + data.data);
                });
            },
            function() {
                console.warn('WebSocket connection closed');
            },
            {'skipSubprotocolCheck': true}
        );
```
