diff options
| author | RblSb <msrblsb@gmail.com> | 2021-12-19 05:51:20 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2021-12-19 05:51:30 +0300 |
| commit | e48c2be14fb1474beb1993cd09e4f42aec51b1a8 (patch) | |
| tree | 4b66cad87edf47e1d979ac5d3f83e35a9504256d /src | |
| parent | 68488f8401e1b6a3bcc15033fde09319fc7ec64b (diff) | |
Update ws library and lockfile version
closes #34
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/Main.hx | 4 |
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); |
