summaryrefslogtreecommitdiff
path: root/frontend/src/utils/createWebSocketConnection.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/utils/createWebSocketConnection.js')
-rw-r--r--frontend/src/utils/createWebSocketConnection.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/frontend/src/utils/createWebSocketConnection.js b/frontend/src/utils/createWebSocketConnection.js
deleted file mode 100644
index f5d29f37..00000000
--- a/frontend/src/utils/createWebSocketConnection.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import SockJS from 'sockjs-client'
-import Stomp from 'webstomp-client'
-const wsURL = '/seven-wonders-websocket'
-
-const createConnection = (headers = {}) => new Promise((resolve, reject) => {
- let socket = Stomp.over(new SockJS(wsURL), {
- debug: process.env.NODE_ENV !== "production"
- })
- socket.connect(headers, (frame) => {
- return resolve({ frame, socket })
- }, reject)
-})
-
-export default createConnection
bgstack15