react-stomp
react-stomp copied to clipboard
React websocket component for STOMP protocol over SockJs
Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project. #### Changes included in this PR - Changes to the following...
{token && userId && ( [{PdcFilterUtils.ts2HHmmssSSS(createTime) || '-'}] {(currentChannelName && currentChannelName.name) || '-'} 开始请求 )}
How resolver?
Might be a dumb question, but how do you send messages with different topic and/or msg. I tried doing it in a switch-case, but that resulted in this error. `sendMessage...
This is the strange behaviour I encountered while subscribing to multiple topics. These are the topics passed: ``` 0: "/topic/settings/update" 1: "/queue/9999999999/notifications" ``` ``` { this.clientRef = client; }} debug...
### **_Expected Change: this.client.connect(this.props.headers, (frame) => { console.log("frame", frame) this.setState({ connected: true }) this.props.topics.forEach((topic) => { this._subscribe(topic) }) this.props.onConnect(frame) }, (error) => { if (error) { if (Object.keys(this.props).includes('onConnectFailure')) { this.props.onConnectFailure(error)...
web Failed to compile. node_modules/react-stompjs/stomp.js 110:24 Module parse failed: Unexpected token (110:24) You may need an appropriate loader to handle this file type, currently no loaders are configured to process...
I,m not able to pass the token in the header using SockjsClient. Here is my code const customHeader = { Authorization: 'Basic token' }; this.stompClient.connect(customHeader, (res) => { }, (error)...
I cannot add header request to websocket. the headers prop just be message header.