aboutsummaryrefslogtreecommitdiffstats
path: root/lib/binance.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-02 11:02:06 -0700
committerAdam Soltys <[email protected]>2022-09-02 11:02:06 -0700
commit7a8d64833de8873afb92982b3f5bfff59b30c542 (patch)
treebc92e20c7d5127d3b6b17f7b8d3190e08579f49e /lib/binance.js
parentb06e117af96a38b163384f6a343f1de7c8996724 (diff)
downloadcoinos-server-7a8d64833de8873afb92982b3f5bfff59b30c542.tar.gz
coinos-server-7a8d64833de8873afb92982b3f5bfff59b30c542.zip
es6 migration
Diffstat (limited to 'lib/binance.js')
-rw-r--r--lib/binance.js4
1 files changed, 2 insertions, 2 deletions
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) {