league-connect icon indicating copy to clipboard operation
league-connect copied to clipboard

Cant create WebSocketConnection

Open Mom0aut opened this issue 1 year ago • 0 comments

Hey i cant create a Websocket connection the response object is always null. Is there maybe a problem with the Websocket-Connection with the R12 version?

Example Code

const ws = await createWebSocketConnection({
        authenticationOptions: {
            // any options that can also be called to authenticate()
            awaitConnection: true,
        }, pollInterval: 1000
    })

ws.on('message', message => { //ws is always null
  // Subscribe to any websocket event
})

I am using Next.js with Electron, maybe i am missing something?

Mom0aut avatar Apr 10 '23 17:04 Mom0aut