From 7a8d64833de8873afb92982b3f5bfff59b30c542 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 2 Sep 2022 11:02:06 -0700 Subject: es6 migration --- lib/binance.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/binance.js') diff --git a/lib/binance.js b/lib/binance.js index cda6fd66..4aa678a9 100644 --- a/lib/binance.js +++ b/lib/binance.js @@ -1,6 +1,6 @@ -const WebSocket = require("ws"); +import WebSocket from 'ws'; -module.exports = () => { +export default () => { binance = new WebSocket("wss://stream.binance.com:9443/ws/btcusdt@ticker"); binance.onmessage = async function (event) { -- cgit v1.2.3