Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15311935
D18338.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
820 B
Referenced Files
None
Subscribers
None
D18338.diff
View Options
diff --git a/support/aphlict/server/lib/AphlictClientServer.js b/support/aphlict/server/lib/AphlictClientServer.js
--- a/support/aphlict/server/lib/AphlictClientServer.js
+++ b/support/aphlict/server/lib/AphlictClientServer.js
@@ -92,8 +92,10 @@
var server = this._server.listen.apply(this._server, arguments);
var wss = new WebSocket.Server({server: server});
- wss.on('connection', function(ws) {
- var path = url.parse(ws.upgradeReq.url).pathname;
+ wss.on('connection', function(ws,req) {
+ //Due to a breaking change in Websockets this check is necessary
+ req = req || ws.upgradeReq;
+ var path = url.parse(req.url).pathname;
var instance = self._parseInstanceFromPath(path);
var listener = self.getListenerList(instance).addListener(ws);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 7, 12:15 PM (4 d, 23 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7332492
Default Alt Text
D18338.diff (820 B)
Attached To
Mode
D18338: Fixed issue: Due to API change of WebSockets event callback had to be changed
Attached
Detach File
Event Timeline
Log In to Comment