aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/Main.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2021-12-19 05:51:20 +0300
committerRblSb <msrblsb@gmail.com>2021-12-19 05:51:30 +0300
commite48c2be14fb1474beb1993cd09e4f42aec51b1a8 (patch)
tree4b66cad87edf47e1d979ac5d3f83e35a9504256d /src/server/Main.hx
parent68488f8401e1b6a3bcc15033fde09319fc7ec64b (diff)
Update ws library and lockfile version
closes #34
Diffstat (limited to 'src/server/Main.hx')
-rw-r--r--src/server/Main.hx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/Main.hx b/src/server/Main.hx
index 7a1b06a..bef889a 100644
--- a/src/server/Main.hx
+++ b/src/server/Main.hx
@@ -367,8 +367,8 @@ class Main {
type: Connected
}, true);
- ws.on("message", data -> {
- final obj = wsEventParser.fromJson(data);
+ ws.on("message", (data:js.node.Buffer) -> {
+ final obj = wsEventParser.fromJson(data.toString());
if (wsEventParser.errors.length > 0 || noTypeObj(obj)) {
final line = 'Wrong request for type "${obj.type}":';
final errorLines = ErrorUtils.convertErrorArray(wsEventParser.errors);
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage