aboutsummaryrefslogtreecommitdiffstats
path: root/lib/binance.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/binance.js')
-rw-r--r--lib/binance.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/binance.js b/lib/binance.js
index 4aa678a9..0f91ce8c 100644
--- a/lib/binance.js
+++ b/lib/binance.js
@@ -1,7 +1,7 @@
import WebSocket from 'ws';
export default () => {
- binance = new WebSocket("wss://stream.binance.com:9443/ws/btcusdt@ticker");
+ const binance = new WebSocket("wss://stream.binance.com:9443/ws/btcusdt@ticker");
binance.onmessage = async function (event) {
try {