Update socket.io.client.service.js

This commit is contained in:
David Baldwynn 2017-04-20 21:45:26 -07:00 committed by GitHub
parent d5072d5ac2
commit 8e7533aa81

View file

@ -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,