StompBrokerJS
StompBrokerJS copied to clipboard
TypeError: Cannot read property '0' of undefined
The node broker run in nodejs
Debugger listening on ws://127.0.0.1:9229/8e90f57c-84bd-49ce-8b41-f9e626d23132 For help, see: https://nodejs.org/en/docs/inspector Connect id207227774120221540000 CONNECT id207227774120221540000 { client: 10000, server: 10000 } { 'accept-version': '1.0', 'heart-beat': '10000,10000' } Server subscribe sub-1601805535061-486 /echo topic:/echo messageType: string Bonjour { destination: '/echo', 'content-length': 7, bytes_message: true, subscription: 'self_15317701541' }
After the reply
I have the callstack
TypeError: Cannot read property '0' of undefined
at StompServer._checkSubMatchDest (E:\nodeproject\octree\node_modules\stomp-broker-js\stompServer.js:495:21)
at StompServer._sendToSubscriptions (E:\nodeproject\octree\node_modules\stomp-broker-js\stompServer.js:353:24)
at StompServer.
When i debug i watch a wrong value in for loop of The variable i increment correctly 0 , 1 and then containt "indexOKey" this._sendToSubscriptions = function (socket, args) { for (var i in this.subscribes) { var sub = this.subscribes[i];