It is possible to get data from SG by WebSocket changes-feed with cookies in the browser

Now I can get data from SG by WebSocket changes-feed with cookies on server side as:

now I want to get data in client side(browser) via WebSocket changes-feed in nodeJS.
dose anybody give me an example?

I’m not a JS expert, but I think the browser WebSocket API is different; node.js is a server-side framework. But otherwise you do the same thing: connect to the same URL, send the feed parameters in a message, then receive event messages.

thank you for the feedback.
yes, the browser WebSocket API is different. so I wonder is there some guys do the same thing in the forums.

It’s different, but from what I remember, it’s really simple. Have you tried it yet?

yes, I have tried it but not success.
and from stackoverflow I think it maybe work, I still not success.