Skip to content

Cant create WebSocketConnection #110

@Mom0aut

Description

@Mom0aut

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions