Skip to content

Commit 2abaa9f

Browse files
committed
Fix invoke from webpage
1 parent 9adc26e commit 2abaa9f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

OpenFlow/src/WebSocketClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ export class WebSocketClient {
137137
public async sendToQueue(msg: QueueMessage) {
138138
if (Util.IsNullEmpty(msg.queuename)) { throw new Error("sendToQueue, queuename is mandatory") }
139139
if (this.consumers.length === 0) { throw new Error("No consumers for client available to send message through") }
140-
var result = this.consumers[0].sendToQueue(msg.queuename, msg.correlationId, { payload: msg.data, jwt: this.jwt, user: this.user });
140+
// var result = this.consumers[0].sendToQueue(msg.queuename, msg.correlationId, { payload: msg.data, jwt: this.jwt, user: this.user });
141+
var result = this.consumers[0].sendToQueue(msg.queuename, msg.correlationId, msg.data);
141142
}
142143
sleep(ms) {
143144
return new Promise(resolve => {

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.489
1+
0.0.490

0 commit comments

Comments
 (0)