summaryrefslogtreecommitdiff
path: root/frontend/src/utils/createWebSocketConnection.js
diff options
context:
space:
mode:
authorVictor Chabbert <chabbertvi@eisti.eu>2017-01-20 23:20:02 +0100
committerVictor Chabbert <chabbertvi@eisti.eu>2017-01-20 23:25:26 +0100
commitb5a460ecc35dc5609339317337d467368d7593bb (patch)
tree9858ed63e6f11ace23f107e1fb0b68cefa9ef340 /frontend/src/utils/createWebSocketConnection.js
parentDUCKS! Refactor front architecture (diff)
downloadseven-wonders-b5a460ecc35dc5609339317337d467368d7593bb.tar.gz
seven-wonders-b5a460ecc35dc5609339317337d467368d7593bb.tar.bz2
seven-wonders-b5a460ecc35dc5609339317337d467368d7593bb.zip
Remove absolute ws link in frontend
Diffstat (limited to 'frontend/src/utils/createWebSocketConnection.js')
-rw-r--r--frontend/src/utils/createWebSocketConnection.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/utils/createWebSocketConnection.js b/frontend/src/utils/createWebSocketConnection.js
index b0924976..f5d29f37 100644
--- a/frontend/src/utils/createWebSocketConnection.js
+++ b/frontend/src/utils/createWebSocketConnection.js
@@ -1,6 +1,6 @@
import SockJS from 'sockjs-client'
import Stomp from 'webstomp-client'
-const wsURL = 'http://localhost:8080/seven-wonders-websocket'
+const wsURL = '/seven-wonders-websocket'
const createConnection = (headers = {}) => new Promise((resolve, reject) => {
let socket = Stomp.over(new SockJS(wsURL), {
bgstack15