Commit fc0adf7f authored by nanahira's avatar nanahira

Merge branch 'master' into koishi

parents e2323451 4ac3f97b
Pipeline #17321 passed with stages
in 9 minutes and 38 seconds
// Generated by CoffeeScript 2.5.1
// Generated by CoffeeScript 2.6.1
(function() {
var WebSocketServer, _delete, broadcast, create, init, room_data, server, settings, start, update, url;
......@@ -40,9 +40,9 @@
server = new WebSocketServer({
server: http_server
});
return server.on('connection', function(connection) {
return server.on('connection', function(connection, upgradeReq) {
var room;
connection.filter = url.parse(connection.upgradeReq.url, true).query.filter || 'waiting';
connection.filter = url.parse(upgradeReq.url, true).query.filter || 'waiting';
return connection.send(JSON.stringify({
event: 'init',
data: (function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment