diff --git a/src/LiveQuery/ParseWebSocketServer.js b/src/LiveQuery/ParseWebSocketServer.js index 606056fc2e..fa521080ed 100644 --- a/src/LiveQuery/ParseWebSocketServer.js +++ b/src/LiveQuery/ParseWebSocketServer.js @@ -2,6 +2,7 @@ import { loadAdapter } from '../Adapters/AdapterLoader'; import { WSAdapter } from '../Adapters/WebSocketServer/WSAdapter'; import logger from '../logger'; import events from 'events'; +import { inspect } from 'util'; export class ParseWebSocketServer { server: Object; @@ -15,7 +16,7 @@ export class ParseWebSocketServer { wss.onConnection = ws => { ws.on('error', error => { logger.error(error.message); - logger.error(JSON.stringify(ws)); + logger.error(inspect(ws, false)); }); onConnect(new ParseWebSocket(ws)); // Send ping to client periodically