websockets Documentation
Release 9.0provides high-level, coroutine-based APIs. Compared to callbacks, coroutines make it easier to manage control flow in concurrent code. If you prefer callback-based APIs, you should use another library. Can I coroutine, which is where your code can send or receive messages. This pattern is called inversion of control. It’s common in frameworks implementing servers. When the handler coroutine terminates, websockets connection; • provides recv() and send() coroutines for receiving and sending messages; • deals with control frames automatically; • performs the closing handshake to terminate the connection. WebSocketClientProtocol0 码力 | 81 页 | 352.88 KB | 1 年前3
websockets Documentation
Release 4.0InvalidHandshake if the handshake fails. Shared The websockets.protocol module handles WebSocket control and data frames as specified in sections 4 to 8 of RFC 6455. class websockets.protocol.WebSocketCommonProtocol(* WebSocketClientProtocol. It runs a task that stores incoming data frames in a queue and deals with control frames automatically. It sends outgoing data frames and performs the closing handshake. On Python lifecycle on the client side. The lifecycle is identical on the server side, except inversion of control makes the equivalent of connect() implicit. Coroutines shown in green are called by the application0 码力 | 48 页 | 224.70 KB | 1 年前3
Tornado 6.0 Documentation
Template syntax A Tornado template is just HTML (or any other text-based format) with Python control sequences and expressions embedded within the markup:{{ title }} support control statements and expressions. Control statements are surrounded by {% and %}, e.g. {% if len(items) > 2 %}. Expressions are surrounded by {{ and }}, e.g. {{ items[0] }}. Control statements main thread. If you use multiple threads it is important to use IOLoop.add_callback to transfer control back to the main thread before finishing the request, or to limit your use of other threads to IOLoop0 码力 | 245 页 | 885.76 KB | 1 年前3
websockets Documentation
Release 5.0InvalidHandshake if the handshake fails. Shared The websockets.protocol module handles WebSocket control and data frames as specified in sections 4 to 8 of RFC 6455. 3.1. API 25 websockets Documentation WebSocketClientProtocol. It runs a task that stores incoming data frames in a queue and deals with control frames automatically. It sends outgoing data frames and performs the closing handshake. On Python lifecycle on the client side. The lifecycle is identical on the server side, except inversion of control makes the equivalent of connect() implicit. Coroutines shown in green are called by the application0 码力 | 56 页 | 245.43 KB | 1 年前3
Tornado 6.1 Documentation
Template syntax A Tornado template is just HTML (or any other text-based format) with Python control sequences and expressions embedded within the markup:{{ title }} support control statements and expressions. Control statements are surrounded by {% and %}, e.g. {% if len(items) > 2 %}. Expressions are surrounded by {{ and }}, e.g. {{ items[0] }}. Control statements main thread. If you use multiple threads it is important to use IOLoop.add_callback to transfer control back to the main thread before finishing the request, or to limit your use of other threads to IOLoop0 码力 | 245 页 | 904.24 KB | 1 年前3
websockets Documentation
Release 6.0InvalidHandshake if the handshake fails. Shared The websockets.protocol module handles WebSocket control and data frames as specified in sections 4 to 8 of RFC 6455. 3.1. API 25 websockets Documentation WebSocketClientProtocol. It runs a task that stores incoming data frames in a queue and deals with control frames automatically. It sends outgoing data frames and performs the closing handshake. On Python lifecycle on the client side. The lifecycle is identical on the server side, except inversion of control makes the equivalent of connect() implicit. Coroutines shown in green are called by the application0 码力 | 58 页 | 253.08 KB | 1 年前3
Tornado 6.5 DocumentationTemplate syntax A Tornado template is just HTML (or any other text-based format) with Python control sequences and expressions embedded within the markup:{{ title }} render("template.html", title="My title", items=items) Tornado templates support control statements and expressions. Control statements are surrounded by {% and %}, e.g. {% if len(items) > 2 %}. Expressions surrounded by {{ and }}, e.g. {{ items[0] }}. 6.1. User’s guide 27Tornado Documentation, Release 6.5.1 Control statements more or less map exactly to Python statements. We support if, for, while, and try, all0 码力 | 272 页 | 1.12 MB | 3 月前3
Conda 4.6.0 DocumentationNavigate to the anaconda directory. 3. Run conda update conda. Uninstalling conda 1. In the Windows Control Panel, click Add or Remove Program. 2. Select Python X.X (Miniconda), where X.X is your version conda: 1. Install conda and the allowed packages, if any, in a location that is under administrator control and accessible to users. 2. Create a .condarc system configuration file in the root directory of Permission denied errors during installation Cause The umask command determines the mask settings that control how file permissions are set for newly created files. If you have a very restrictive umask, such0 码力 | 190 页 | 728.67 KB | 8 月前3
Conda 4.6.1 DocumentationNavigate to the anaconda directory. 3. Run conda update conda. Uninstalling conda 1. In the Windows Control Panel, click Add or Remove Program. 2. Select Python X.X (Miniconda), where X.X is your version conda: 1. Install conda and the allowed packages, if any, in a location that is under administrator control and accessible to users. 2. Create a .condarc system configuration file in the root directory of Permission denied errors during installation Cause The umask command determines the mask settings that control how file permissions are set for newly created files. If you have a very restrictive umask, such0 码力 | 190 页 | 728.57 KB | 8 月前3
Tornado 6.4 Documentation
Template syntax A Tornado template is just HTML (or any other text-based format) with Python control sequences and expressions embedded within the markup:{{ title }} render("template.html", title="My title", items=items) Tornado templates support control statements and expressions. Control statements are surrounded by {% and %}, e.g. {% if len(items) > 2 %}. Expressions surrounded by {{ and }}, e.g. {{ items[0] }}. 6.1. User’s guide 27 Tornado Documentation, Release 6.4 Control statements more or less map exactly to Python statements. We support if, for, while, and try, all0 码力 | 268 页 | 1.09 MB | 1 年前3
共 489 条
- 1
- 2
- 3
- 4
- 5
- 6
- 49













