mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
changed function( to function (
This commit is contained in:
parent
26f3d22db7
commit
7e5eeb0a27
36 changed files with 209 additions and 209 deletions
|
|
@ -2,7 +2,7 @@ define([
|
|||
'socket.io'
|
||||
],
|
||||
|
||||
function(io) {
|
||||
function (io) {
|
||||
|
||||
function Socket(server, options, coordinator) {
|
||||
options.logLevel = typeof options.logLevel != 'undefined'
|
||||
|
|
@ -15,19 +15,19 @@ function(io) {
|
|||
this.init(options);
|
||||
}
|
||||
|
||||
Socket.prototype.init = function(options){
|
||||
Socket.prototype.init = function (options){
|
||||
|
||||
var self = this;
|
||||
this.socket.configure('development', function(){
|
||||
this.socket.configure('development', function (){
|
||||
this.set('log level', options.logLevel);
|
||||
});
|
||||
|
||||
this.socket.on('connection', function(user){
|
||||
this.socket.on('connection', function (user){
|
||||
self.onConnection(user);
|
||||
});
|
||||
}
|
||||
|
||||
Socket.prototype.onConnection = function(socketLink){
|
||||
Socket.prototype.onConnection = function (socketLink){
|
||||
this.coordinator.createUser(socketLink);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue