Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在测试Websocket连接性VPN。我发现使用主机名连接比单独使用 IP 地址稳定得多。
Websocket
VPN
有人可以提出任何可能的原因吗?
此外,我无法找到 Websocket 帧的性质,如果它们是按顺序传输还是以随机方式传输?
WebSocket 依赖于 TCP,它为您订购数据。TCP 为您提供了有序流的抽象。
WebSocket 可以使用主机名或 IP 地址。不太清楚你所说的“更稳定”是什么意思,但如果你遇到连接问题,它可能是你的 DNS 服务......或者它可能是你正在使用的 WebSocket 的实现。