This commit is contained in:
fanyongdong daben 2016-11-25 18:27:50 +08:00
commit 9b18ff5a05
3 changed files with 8664 additions and 9 deletions

8662
dist/build.js vendored

File diff suppressed because one or more lines are too long

2
dist/build.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -4,11 +4,10 @@ import Socket from 'socket.io-client'
export default class{
constructor(connection) {
if(typeof connection == 'string'){
this.Socket = Socket(connection);
}else{
this.Socket = connection
if (connection.length == 1) {
this.Socket = Socket(connection[0]);
} else {
this.Socket = Socket(connection[0], connection[1]);
}
this.onEvent()