Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
Messages can be either text or binary. A message sent as text must contain consist of valid utf8, while a message sent as binary may contain arbitrary data. In addition to message frames, webs消息可以是文本类型或二进制类型。以文本形式发送的消息必须包含有效的 UTF-8 编码,而以二进制形式发送的消息则可以包含任意数据。除了消息帧之外,WebSocketprovides ['control frames] in the form of ping, pong, and close messages which have a small upper limit on their payload size. Depending on how a message is framed, control frames may have more opportunities to be sent in-between.还提供控制帧,包括 ping、pong 和 close 消息,这些控制帧的有效载荷大小有较小的上限限制。根据消息的帧结构方式,控制帧可能有更多的机会在传输间隙发送。