Closed drwebb closed 8 years ago
Hi,
I ran across two off by one bugs while trying to open a websocket connection for some code I was working on.
The conditional checking the type of the MessageEvent was returning inverted values for the two Binary types. See getData right above the change.
getData
Checking the binaryType property of a websocket object was returning a Int which is fed into a toEnum starting at value 1, instead of 0.
toEnum
Thanks!
Hi,
I ran across two off by one bugs while trying to open a websocket connection for some code I was working on.
JavaScript/Web/MessageEvent.hs
The conditional checking the type of the MessageEvent was returning inverted values for the two Binary types. See
getData
right above the change.JavaScript/Web/WebSocket.hs
Checking the binaryType property of a websocket object was returning a Int which is fed into a
toEnum
starting at value 1, instead of 0.