New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binary websockets frames are not supported #655
Comments
We are not going to prioritize this at the moment, but would be happy to accept a Pull Request. Given that both can be passed and changed on the fly, the function should be able to accept both (as opposed to setting modes for incoming messages on the transport/parser). |
This is your choice to follow or not to follow MUSTs in recommendations. |
@poroh Can you provide a link to a WebRTC endpoint that is utilizing binary messages over WebSockets so we can test against it? Edit: Ah, disregard. I see now that it is proprietary. |
@seanbright I'm not sure that it would be very easy. You can try to up samples from https://github.com/NetComposer/nksip . AFAIK it also sends binary frames. |
I think this may be same issue as #792 which was recently addressed. |
Fixed as of 0.15.11. |
Describe the bug
SIP over Webscoket (https://tools.ietf.org/html/rfc7118#section-4.2) specification clearly states:
But binary messages cause parse error:
Logs
To Reproduce (if possible)
n/a.
Expected behavior
Binary websocket frames (Buffer) are accepted.
Observed behavior
Binary websocket frames are ignored
Environment Information
Additional context
I suppose tha parsing function parseMessage:
SIP.js/src/Parser.ts
Line 194 in f6be37b
should also accept ArrayBuffer.
The text was updated successfully, but these errors were encountered: