Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
During read operations, Beast automatically reads and processes control frames. If a control callback is registered, the callback is notified of the incoming control frame. The implementation will respond to pings automatically. The receipt of a close frame initiates the WebSocket close procedure, eventually resulting in the error code在执行读取操作期间,Beast 会自动读取并处理控制帧。如果注册了控制回调函数,该回调会收到传入控制帧的通知。实现会自动响应 ping。当收到 close 帧时,会触发 WebSocket 关闭流程,最终在后续的读取操作中(假设没有发生其他错误)向调用方传递错误码 [link beast.ref.boost__beast__websocket__error`error::closed`] being delivered to the caller in a subsequent read operation, assuming no other error takes place.]。