diff --git a/src/Observer.js b/src/Observer.js index e1afdcc..846ab91 100755 --- a/src/Observer.js +++ b/src/Observer.js @@ -7,6 +7,8 @@ export default class{ if(typeof connection == 'string'){ this.Socket = Socket(connection); + }else if(connection.url){ + this.Socket = Socket(connection.url, {path: connection.path ? connection.path : '/socket.io'}); }else{ this.Socket = connection }