diff --git a/lib/server/WebSocketServer.js b/lib/server/WebSocketServer.js
index <HASH>..<HASH> 100644
--- a/lib/server/WebSocketServer.js
+++ b/lib/server/WebSocketServer.js
@@ -13,7 +13,7 @@
  *                                                        *
  * Hprose WebSocket Server for Node.js.                   *
  *                                                        *
- * LastModified: Jun 19, 2015                             *
+ * LastModified: Aug 1, 2015                              *
  * Author: Ma Bingyao <andot@hprose.com>                  *
  *                                                        *
 \**********************************************************/
@@ -64,7 +64,7 @@ function WebSocketServer(options, tlsOptions) {
         httpserver.close();
     }
     function listen() {
-        server.listen.apply(server, arguments);
+        httpserver.listen.apply(httpserver, arguments);
         server = new ws.Server(options);
         server.on('connection', self.wsHandle);
         server.on('error', onerror);
Fixed listen method of WebSocketServer