lahsivjar / react-stomp

React websocket component for STOMP protocol over SockJs
https://www.npmjs.com/package/react-stomp
MIT License
134 stars 41 forks source link

Cannot add header request to websocket #222

Open PhuLecong opened 6 months ago

PhuLecong commented 6 months ago

I cannot add header request to websocket. the headers prop just be message header.

anisharya16 commented 5 months ago

i also want to send some data (lets say id: "12345") in header on websocket connection establishment. I could do it using Postman but not sure how to do it in React application using Websocket. Anyone have any idea how to do it? or any other websocket npm library.