Closed mprudnik closed 1 year ago
connection.on('message', (data, isBinary) => {
- if (isBinary) this.binary(client, data);
+ if (isBinary) this.binary(client, new Uint8Array(data));
else this.message(client, data);
});
@tshemsedinov Tests are passing now. Could you please review how the tests are written before landing this PR? The idea was to use only client code to test it separately, create mock server for each case and run a basic success case scenario.
@tshemsedinov Yes, ready
@mprudnik Landed, Thanks!
npm t
)npm run fmt
)