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() { (function() {
var WebSocketServer, _delete, broadcast, create, init, room_data, server, settings, start, update, url; var WebSocketServer, _delete, broadcast, create, init, room_data, server, settings, start, update, url;
...@@ -40,9 +40,9 @@ ...@@ -40,9 +40,9 @@
server = new WebSocketServer({ server = new WebSocketServer({
server: http_server server: http_server
}); });
return server.on('connection', function(connection) { return server.on('connection', function(connection, upgradeReq) {
var room; 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({ return connection.send(JSON.stringify({
event: 'init', event: 'init',
data: (function() { 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