websocket icon indicating copy to clipboard operation
websocket copied to clipboard

[Question] <traffic from local machine to websocket server is high>

Open zhouziyan opened this issue 2 years ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

I am using this repo to work with websocket thing. My case is very simple, just listening some data from a web server. After I start my program, I use $ sudo nethogs command to see the network traffic. I saw that SENT is 50k/s and RECEIVED is 500k/s. I did't sent any traffic to websocket server. I'd like to ask what message is included in SENT and how to disable it? Could anybody from community can help me?

Expected Behavior

No response

Steps To Reproduce

No response

Anything else?

No response

zhouziyan avatar Nov 28 '23 13:11 zhouziyan

I use Wireshark to capture tcp/udp traffic of server.go and find no data is received or sent by server except for heartbeat every 15 seconds. Please share you code for deep investigation.

Hayden-Chang avatar Feb 24 '24 13:02 Hayden-Chang

@Hayden-Chang try to connect to wss://stream.binance.com:9443/ws/btcusdt@bookTicker

zhouziyan avatar Mar 18 '24 01:03 zhouziyan