全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Quantitative Finance · 术语表

什么是 WebSocket, WebSocket frame?

又称: WebSocket · WebSocket frame

Definition 17.3 Low-Latency Software · 第 17 章 — WebSocket, REST, TLS and JSON at Speed

A WebSocket is a bidirectional message channel over one TCP connection (usually inside TLS), opened by an HTTP request that asks to upgrade the connection (RFC 6455). A WebSocket frame is its unit on the wire: a two-byte header (a final-fragment bit, an opcode for text, binary, continuation, close, ping or pong, a mask bit and a 7-bit length), an extended length of 2 or 8 bytes when the payload exceeds 125 bytes, a 4-byte masking key on frames from the client, and the payload.

在原文中阅读 →