Skip to content

Commit 6c381c0

Browse files
committed
It was not possible to pass options to the $websocket constructor.
This fix should also resolve the issue : PatrickJS#18, if you do : ws = $websocket('ws://127.0.0.1:8888', null, {reconnectIfNotNormalClose: true});
1 parent 977cde3 commit 6c381c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/angular-websocket.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@
330330
});
331331
}
332332

333-
return function(url, protocols) {
334-
return new $WebSocket(url, protocols);
333+
return function(url, protocols, options) {
334+
return new $WebSocket(url, protocols, options);
335335
};
336336
}
337337

0 commit comments

Comments
 (0)