소스 검색

Ignore heartbeat messages

dylannz 9 년 전
부모
커밋
1db3e6eee9
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      lib/server.js

+ 2 - 0
lib/server.js

@@ -101,6 +101,8 @@ app._configureWS = function(socket, key, id, token) {
           dst: message.dst,
           payload: message.payload
         });
+      } else if (message.type === 'HEARTBEAT') {
+        // Ignore - nothing needs doing here.
       } else {
         util.prettyError("Message unrecognized");
       }