From b774b7840992a9ae459fd45d8ef78fb14fdb37a2 Mon Sep 17 00:00:00 2001 From: Lamp Date: Mon, 5 Nov 2018 23:53:00 -0800 Subject: [PATCH] Update send2ddp --- src/ddpbridge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ddpbridge.js b/src/ddpbridge.js index 9ceedcb..afa4253 100644 --- a/src/ddpbridge.js +++ b/src/ddpbridge.js @@ -41,7 +41,7 @@ function send2discord(message) { } function send2ddp(message) { - if (ws.readyState == WebSocket.OPEN) ws.send(message); + if (ws.readyState == WebSocket.OPEN) ws.send(JSON.stringify({type:"chat",message})); } dClient.on("local_message", message => {