elephant.io icon indicating copy to clipboard operation
elephant.io copied to clipboard

options arguments functionality

Open faizalpribadi opened this issue 10 years ago • 1 comments

I have some service socket io server built on node.js with socket.io version 0.9.16 when i'm trying to configure the client with elephant.io like this

$version = new \ElephantIO\Engine\SocketIO\Version0X('http://localhost:8098', array('resource' => 'api/notifications'));
$client = new \ElephantIO\Client($version);

the default options in AbstractSocketIO.php

protected function getDefaultOptions()
    {
        return ['context' => [],
                'debug'   => false,
                'wait'    => 100*1000,
                'timeout' => ini_get("default_socket_timeout")];
    }

options parameter resource doesnt not fire resource option to the server, because in the server with like this:

var io = require('socket.io');
io('localhost:8098', {
    resource: 'api/notifications'
})

in the socket.io 0.9.16 object options including resource, anyone have idea for my issue, thanks !

faizalpribadi avatar Feb 22 '16 11:02 faizalpribadi

Could you maybe make a PR ? Thanks

Taluu avatar Mar 02 '16 14:03 Taluu