diff options
author | Victor Chabbert <chabbertvi@eisti.eu> | 2016-12-20 15:39:44 +0100 |
---|---|---|
committer | Victor Chabbert <chabbertvi@eisti.eu> | 2016-12-20 15:39:44 +0100 |
commit | 552acb769250685764a673670d7828c38efa01d0 (patch) | |
tree | 3d75c15a07f88194aff66e2575122dee655c9879 | |
parent | Add create game logic (diff) | |
download | seven-wonders-552acb769250685764a673670d7828c38efa01d0.tar.gz seven-wonders-552acb769250685764a673670d7828c38efa01d0.tar.bz2 seven-wonders-552acb769250685764a673670d7828c38efa01d0.zip |
Disable stomp debug in production
-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) |