BrainBoxLabs / brain-socket-js

JS helper class for event-driven Websockets with Brainsocket & Laravel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error doesn't seem to have any detail/listener not working

sheyworth opened this issue · comments

Hey there,

I had everything working on a local copy of the site I've integrated your code with - and it worked awesome!

I moved everything to a live server, and that's when I started to have issues.

Brainsocket starts using laravel, and when I send a message over the websocket and listen, I see it appear in the listen log and everything.

It's receiving through the listener that I'm having issues with.

Attached is the error I receive from your js file, it seems like it's firing through the onerror event, but it doesn't seem to give me any detail as to what's actually going on.

`onerror — brain-socket.min.js:1:918
Event

bubbles: false

cancelBubble: false

cancelable: false

clipboardData: undefined

composed: false

currentTarget: WebSocket {BrainSocket: BrainSocket, digestMessage: function, URL: "ws://localhost:8080", url: "ws://localhost:8080", readyState: 3, …}

defaultPrevented: false

eventPhase: 0

isTrusted: true

returnValue: true

srcElement: WebSocket {BrainSocket: BrainSocket, digestMessage: function, URL: "ws://localhost:8080", url: "ws://localhost:8080", readyState: 3, …}

target: WebSocket {BrainSocket: BrainSocket, digestMessage: function, URL: "ws://localhost:8080", url: "ws://localhost:8080", readyState: 3, …}

timeStamp: 1490241789897

type: "error"

Event Prototype`

What am I doing wrong/is this an issue that has happened to others/what is the actual error?

Thanks so much.