diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/js/src/utils/createWebSocketConnection.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/js/src/utils/createWebSocketConnection.js b/src/main/js/src/utils/createWebSocketConnection.js index 200bedbe..b0924976 100644 --- a/src/main/js/src/utils/createWebSocketConnection.js +++ b/src/main/js/src/utils/createWebSocketConnection.js @@ -3,7 +3,9 @@ import Stomp from 'webstomp-client' const wsURL = 'http://localhost:8080/seven-wonders-websocket' const createConnection = (headers = {}) => new Promise((resolve, reject) => { - let socket = Stomp.over(new SockJS(wsURL)) + let socket = Stomp.over(new SockJS(wsURL), { + debug: process.env.NODE_ENV !== "production" + }) socket.connect(headers, (frame) => { return resolve({ frame, socket }) }, reject) |