import SockJS from 'sockjs-client'
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))
    socket.connect(headers, (frame) => {
      return resolve({ frame, socket })
    }, reject)
})

export default createConnection

@@ -250,16 +250,76 @@
 S(wsURL)
+, %7B%0A      debug: process.env.NODE_ENV !== %22production%22%0A    %7D
 )%0A    so

Disable stomp debug in production