From 87ce4f2d2377b4fab45f428c111a6797a516c4a2 Mon Sep 17 00:00:00 2001 From: "Dr.Liam" Date: Sun, 24 Nov 2024 14:31:49 +0330 Subject: [PATCH] Fix: Corrected WebSocket demo URLs by removing redundant "wss://" prefix The WebSocket URLs for private and trade demo endpoints contained an extra "wss://" prefix, causing connection issues. This commit resolves the issue by updating the URLs to the correct format. --- consts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consts.go b/consts.go index 757333d..4807b60 100644 --- a/consts.go +++ b/consts.go @@ -26,8 +26,8 @@ const ( WEBSOCKET_TRADE_MAINNET = "wss://stream.bybit.com/v5/trade" WEBSOCKET_PRIVATE_TESTNET = "wss://stream-testnet.bybit.com/v5/private" WEBSOCKET_TRADE_TESTNET = "wss://stream-testnet.bybit.com/v5/trade" - WEBSOCKET_PRIVATE_DEMO = "wss://wss://stream-demo.bybit.com/v5/private" - WEBSOCKET_TRADE_DEMO = "wss://wss://stream-demo.bybit.com/v5/trade" + WEBSOCKET_PRIVATE_DEMO = "wss://stream-demo.bybit.com/v5/private" + WEBSOCKET_TRADE_DEMO = "wss://stream-demo.bybit.com/v5/trade" // Deprecated: V3 is deprecated and replaced by v5 V3_CONTRACT_PRIVATE = "wss://stream.bybit.com/contract/private/v3"