R
R
RacceGatel2021-11-22 19:52:00
PHP
RacceGatel, 2021-11-22 19:52:00

The client receives data with garbage at the beginning via a web socket. How to fix?

I wanted to do a websocket connection test. I connect to the server through swoole. I get a handshake, everything is ok, the connection is stable. Connecting returns a response from the server with connection data, but any data I get from the server has garbage characters at the beginning. If you connect to the server via Postman, then the data is clean and everything is ok. I don't understand what could be the problem.

Example:

619bca2aef966260847945.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question