Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "cheshire", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Turn based boardgame framework based on websocket", | ||
@@ -5,0 +5,0 @@ "main": "server/Cheshire.js", |
@@ -17,5 +17,8 @@ var ws = require('ws'); | ||
Cheshire.init = function initialize(httpServer) { | ||
Cheshire.init = function initialize(httpServer, path) { | ||
Cheshire.http = httpServer; | ||
Cheshire.server = new ws.Server({server : httpServer}); | ||
Cheshire.server = new ws.Server({ | ||
server : httpServer, | ||
path : path | ||
}); | ||
@@ -22,0 +25,0 @@ Cheshire.server.on('connection', function onConnection(socket) { |
Sorry, the diff of this file is not supported yet
38500
275