The wss protocol opens three times in a row and then closes #3088
-
The wss protocol client connection will be opened three times in a row, and then directly closed, using the wss protocol and assigned ca and name, wss protocol has cookies, and the link is a third-party wss, what is the cause |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Mongoose does not know of, nor handle, cookies. Cookies are not part of WebSocket. If there is some HTML exchange to be done, you have to do it yourself before upgrading to WebSocket. Please correctly assess and define your scenario. Know the protocols you are working with. Define "directly closed"; who is closing ? Why ? |
Beta Was this translation helpful? Give feedback.
Mongoose does not know of, nor handle, cookies. Cookies are not part of WebSocket. If there is some HTML exchange to be done, you have to do it yourself before upgrading to WebSocket. Please correctly assess and define your scenario. Know the protocols you are working with. Define "directly closed"; who is closing ? Why ?
Please see our documentation, and follow the guidelines in our tutorials.
Please sniff your network (using Wireshark, for example) and observe the traffic.
If, after your network inspection, you find an actual issue, feel free to open an issue, fill the issue template, and provide us with pertinent information (including useful network capture files; no snapshots, please…