Skip to content
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

Websocket handling #42

Open
khancyr opened this issue Jun 2, 2021 · 0 comments
Open

Websocket handling #42

khancyr opened this issue Jun 2, 2021 · 0 comments

Comments

@khancyr
Copy link
Contributor

khancyr commented Jun 2, 2021

Hello,

When we use the websocket connection for sending a stream link RC_OVERRIDE_CHANNEL, the server is answering all message with

Ok(
    (),
)

Would it be possible to have this as json and maybe ack with the correct message number ?

The issue is that on JS, it raised a syntax exception as the answer isn't a json

   ws = new WebSocket(websocketServerLocation);
    ws.onmessage = function (event) {
        try {
            var data = JSON.parse(event.data);
        } catch (error) {
            // on sending message we get non JSON response
            //console.log(error);
            //console.log(event.data);
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant