You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 = (messageMap) => { switch (messageMap) { case this.wsGet: this.clientRef.send(this.destinationPrefix + this.wsGet + "/" + this.roomId); break; case this.wsPost: this.clientRef.send(this.destinationPrefix + this.wsPost + "/" + this.roomId, {}, JSON.stringify({ taskName: this.state.taskName, taskDescription: this.state.taskDescription, finished: false })) break; default: console.log("sendMessage case was default...yikes"); break; } };
The text was updated successfully, but these errors were encountered: