Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
"because it only supports protocols" doesn't really make any sense. Please rephrase.
-
No idea what you're talking about but if you're using node I recommend looking at socket.io
-
i am using websockets from client side, server needs auth token. but its not possible, because you cannot send header as parameters in websocket().
-
@necromancer You're still bring super vague and not providing required details
-
@Ranchu No i am not using nodejs. server has been already developed using django. I am using javascript.
-
TobiSGD2815yUsually you send an HTTP(S)-request with the Authorization-Header to an API-endpoint. The API-server then upgrades your HTTP(S)-connection to a websocket-connection. From that point on it is neither necessary nor possible to send further HTTP-headers (or for the websocket server to read them), since it isn't an HTTP-connection anymore, it is a socket now.
-
TobiSGD2815y@blackfaded https://developer.mozilla.org/en-US...
I have only done that in Go so far, you have an connection upgrader provided by the websocket framework there.
Hi all! I am trying to implement websocket in js and want to send authorization jwt to server. but couldn't because it only support protocols. Any other websocket client library jn js that could help to achieve it?
question