mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-09-11 11:53:23 +08:00
Cleanup...
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
function GarageServer (io) {
|
||||
this.io = io;
|
||||
}
|
||||
|
||||
GarageServer.prototype.PlayerConnect = function (callback) {
|
||||
this.io.sockets.on('connection', function (socket) {
|
||||
callback(socket);
|
||||
});
|
||||
};
|
||||
|
||||
GarageServer.prototype.PlayerDisconnect = function (callback) {
|
||||
this.io.sockets.on('connection', function (socket) {
|
||||
callback(socket);
|
||||
});
|
||||
};
|
||||
|
||||
exports.createGameServer = function (io, options){
|
||||
return new GarageServer(io);
|
||||
};
|
||||
Reference in New Issue
Block a user