mirror of
https://github.com/avwo/whistle.git
synced 2026-10-27 04:19:59 +08:00
refactor: websocket proxy
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ function handleWebsocket(socket, clientIp, callback) {
|
||||
socket.reqId = data.reqId = ++index;
|
||||
|
||||
var reqSocket, options, plugin, pluginRules, matchedUrl, done;
|
||||
var pluginHomePage = pluginMgr.getPluginByHomePage(fullUrl);
|
||||
var pluginHomePage = plugin = pluginMgr.getPluginByHomePage(fullUrl);
|
||||
var timeout = util.setTimeout(function() {
|
||||
destroy(new Error('timeout'));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user