elephant.io
elephant.io copied to clipboard
options arguments functionality
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 !
Could you maybe make a PR ? Thanks