Update socket.io.client.service.js
This commit is contained in:
parent
d5072d5ac2
commit
8e7533aa81
|
@ -4,7 +4,8 @@
|
|||
// Create the Socket.io wrapper service
|
||||
function Socket($timeout, $window) {
|
||||
|
||||
|
||||
var service;
|
||||
|
||||
// Connect to Socket.io server
|
||||
function connect(url) {
|
||||
service.socket = io(url, {'transports': ['websocket', 'polling']});
|
||||
|
@ -35,7 +36,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
var service = {
|
||||
service = {
|
||||
connect: connect,
|
||||
emit: emit,
|
||||
on: on,
|
||||
|
|
Loading…
Reference in a new issue