mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
Fix error logging on Remote
* JSON messages are now parsed in server.js * Remote._handleMessage expects all messages to be objects rather than objects or strings * Invalid responses from the server will now result in a log message that is not entirely vague * Added Log.setEngine/getEngine. Use Log.setEngine(Log.engines.none) to silence logging
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
/* eslint-disable no-new */
|
||||
|
||||
const _ = require('lodash');
|
||||
const assert = require('assert');
|
||||
const ws = require('ws');
|
||||
|
||||
Reference in New Issue
Block a user