Closed tiagosiebler closed 4 years ago
You can pass a custom logger and not log the "silly" log level at all (see example below). You might as well use winston or any logger which supports the log methods silly
, debug
, notice
, info
, warning
and error
.
const {WebsocketClient} = require('@pxtrn/bybit-api');
const logger = {
silly: function(message, data) {},
debug: function(message, data) {console.log(message, data)},
notice: function(message, data) {console.log(message, data)},
info: function(message, data) {console.info(message, data)},
warning: function(message, data) {console.warn(message, data)},
error: function(message, data) {console.error(message, data)},
}
const options = {
key: 'xxx',
secret: 'yyy'
};
const ws = new WebsocketClient(options, logger);
Can the websocket pongs be muted via a setting?