diff options
Diffstat (limited to 'frontend/src/utils/websocket.js')
-rw-r--r-- | frontend/src/utils/websocket.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/src/utils/websocket.js b/frontend/src/utils/websocket.js index 4a07d532..b33b2d50 100644 --- a/frontend/src/utils/websocket.js +++ b/frontend/src/utils/websocket.js @@ -1,13 +1,13 @@ -import SockJS from "sockjs-client"; -import Stomp from "webstomp-client"; -import { eventChannel } from "redux-saga"; +import SockJS from 'sockjs-client'; +import Stomp from 'webstomp-client'; +import { eventChannel } from 'redux-saga'; -const wsURL = "/seven-wonders-websocket"; +const wsURL = '/seven-wonders-websocket'; export const createWsConnection = (headers = {}) => new Promise((resolve, reject) => { let socket = Stomp.over(new SockJS(wsURL), { - debug: process.env.NODE_ENV !== "production" + debug: process.env.NODE_ENV !== 'production', }); socket.connect(headers, frame => resolve({ frame, socket }), reject); }); |