Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
When a control callback is registered, it will be invoked for all当注册控制回调后,无论是通过同步读函数还是异步读函数接收到的所有 pings,、pongs, and close frames received through either synchronous read functions or asynchronous read functions. The type of frame and payload text are passed as parameters to the control callback. If the frame is a close frame, the close reason may be obtained by calling和 close 帧,都会触发该回调。帧类型和有效载荷文本会作为参数传递给控制回调。如果帧为 close 帧,可通过调用 [link beast.ref.boost__beast__websocket__stream.reason `reason`].获取关闭原因。