aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/Main.hx
diff options
context:
space:
mode:
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