Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
Ping,ping、pong, and和 closemessages are control frames which may be sent at any time by either peer on an established WebSocket connection. They are sent using the functions消息属于控制帧,在已建立的 WebSocket 连接上,任何一端都可以随时发送。它们分别通过 [link beast.ref.boost__beast__websocket__stream.ping `ping`],、[link beast.ref.boost__beast__websocket__stream.pong `pong`]. and和 [link beast.ref.boost__beast__websocket__stream.close `close`]. To be notified of control frames, callers may register a ['control callback] using函数发送。若要接收控制帧的通知,调用方可通过 [link beast.ref.boost__beast__websocket__stream.control_callback `control_callback`]. The object provided with this option should be callable with the following signature:注册一个控制回调。该选项提供的对象应满足以下签名要求: