From 82aea33dfa5485a5a641ad79e2729aa8bd8058e2 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 16 Jul 2015 18:31:13 -0700 Subject: [PATCH] add server.ws.address() function --- server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server.js b/server.js index c3c485e..5287cdf 100644 --- a/server.js +++ b/server.js @@ -97,6 +97,7 @@ function Server (opts) { self.http.on('listening', onListening) } self.ws = new WebSocketServer({ server: self.http }) + self.ws.address = self.http.address.bind(self.http) self.ws.on('error', function (err) { self._onError(err) }) self.ws.on('connection', function (socket) { self.onWebSocketConnection(socket) }) }