Commit 4ac3f97b authored by nanahira's avatar nanahira

js

parent 98cab0b1
Pipeline #17442 failed with stages
in 4 minutes and 46 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