websockets Documentation Release 9.0
import asyncio import websockets async def echo(websocket, path): async for message in websocket: await websocket.send(message) start_server = websockets.serve(echo, "localhost", 8765) asyncio.get_event_loop() confidentiality and also reliability because they reduce the risk of interference by bad proxies. The WSS protocol is to WS what HTTPS is to HTTP: the connection is encrypted with Transport Layer Security (TLS) {name}!" await websocket.send(greeting) print(f"> {greeting}") ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) localhost_pem = pathlib.Path(__file__).with_name("localhost.pem") ssl_context.load_0 码力 | 81 页 | 352.88 KB | 1 年前3websockets Documentation Release 5.0
import asyncio import websockets async def echo(websocket, path): async for message in websocket: await websocket.send(message) asyncio.get_event_loop().run_until_complete( websockets.serve(echo, 'localhost' confidentiality and also reliability because they reduce the risk of interference by bad proxies. The WSS protocol is to WS what HTTPS is to HTTP: the connection is encrypted with TLS. WSS requires TLS certificates {name}!" await websocket.send(greeting) print(f"> {greeting}") ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) ssl_context.load_cert_chain( pathlib.Path(__file__).with_name('localhost.pem')) start_server0 码力 | 56 页 | 245.43 KB | 1 年前3websockets Documentation Release 6.0
import asyncio import websockets async def echo(websocket, path): async for message in websocket: await websocket.send(message) asyncio.get_event_loop().run_until_complete( websockets.serve(echo, 'localhost' confidentiality and also reliability because they reduce the risk of interference by bad proxies. The WSS protocol is to WS what HTTPS is to HTTP: the connection is encrypted with TLS. WSS requires TLS certificates {name}!" await websocket.send(greeting) print(f"> {greeting}") ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) ssl_context.load_cert_chain( pathlib.Path(__file__).with_name('localhost.pem')) start_server0 码力 | 58 页 | 253.08 KB | 1 年前3websockets Documentation Release 4.0
import asyncio import websockets async def echo(websocket, path): async for message in websocket: await websocket.send(message) asyncio.get_event_loop().run_until_complete( websockets.serve(echo, 'localhost' getElementsByTagName('ul')[0], message = document.createElement('li'), content = document.createTextNode(event.data); message.appendChild(content); messages.appendChild(message); }; document.body.appendChild(messages); consumer coroutine: async def consumer_handler(websocket, path): async for message in websocket: await consumer(message) 1.1. Getting started 5 websockets Documentation, Release 4.0 Iteration terminates0 码力 | 48 页 | 224.70 KB | 1 年前3PyWebIO v1.2.3 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 4.11 Server-Client communication protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 5 Indices and tables 81 6 when the check passes, otherwise an error message will be returned: def check_age(p): # return None when the check passes, otherwise return the error ˓→message if p < 10: return 'Too young!!' if p > the event callback will not work. You can call the pywebio.session.hold() function at the end of the task function to hold the session, so that the event callback will always be available before the browser0 码力 | 92 页 | 1.32 MB | 1 年前3PyWebIO v1.2.2 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 4.11 Server-Client communication protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 5 Indices and tables 81 6 when the check passes, otherwise an error message will be returned: def check_age(p): # return None when the check passes, otherwise return the error ˓→message if p < 10: return 'Too young!!' if p > the event callback will not work. You can call the pywebio.session.hold() function at the end of the task function to hold the session, so that the event callback will always be available before the browser0 码力 | 92 页 | 1.35 MB | 1 年前3Celery v4.4.7 Documentation
describes the current stable version of Celery (4.4). For development docs, go here. Celery - Distributed Task Queue Celery is a simple, flexible, and reliable distributed system to process vast amounts of messages operations with the tools required to maintain such a system. It’s a task queue with focus on real-time processing, while also supporting task scheduling. Celery has a large and diverse community of users and For development docs, go here. Getting Started 4.4 Jul 31, 2020 Introduction to Celery What’s a Task Queue? What do I need? Get Started Celery is… Features Framework Integration Quick Jump Installation0 码力 | 1219 页 | 1.44 MB | 1 年前3Celery v4.4.5 Documentation
describes the current stable version of Celery (4.4). For development docs, go here. Celery - Distributed Task Queue Celery is a simple, flexible, and reliable distributed system to process vast amounts of messages operations with the tools required to maintain such a system. It’s a task queue with focus on real-time processing, while also supporting task scheduling. Celery has a large and diverse community of users and For development docs, go here. Getting Started 4.4 Jun 08, 2020 Introduction to Celery What’s a Task Queue? What do I need? Get Started Celery is… Features Framework Integration Quick Jump Installation0 码力 | 1215 页 | 1.44 MB | 1 年前3Celery v4.4.4 Documentation
describes the current stable version of Celery (4.4). For development docs, go here. Celery - Distributed Task Queue Celery is a simple, flexible, and reliable distributed system to process vast amounts of messages operations with the tools required to maintain such a system. It’s a task queue with focus on real-time processing, while also supporting task scheduling. Celery has a large and diverse community of users and For development docs, go here. Getting Started 4.4 Jun 03, 2020 Introduction to Celery What’s a Task Queue? What do I need? Get Started Celery is… Features Framework Integration Quick Jump Installation0 码力 | 1215 页 | 1.44 MB | 1 年前3Celery v4.4.6 Documentation
describes the current stable version of Celery (4.4). For development docs, go here. Celery - Distributed Task Queue Celery is a simple, flexible, and reliable distributed system to process vast amounts of messages operations with the tools required to maintain such a system. It’s a task queue with focus on real-time processing, while also supporting task scheduling. Celery has a large and diverse community of users and For development docs, go here. Getting Started 4.4 Jun 24, 2020 Introduction to Celery What’s a Task Queue? What do I need? Get Started Celery is… Features Framework Integration Quick Jump Installation0 码力 | 1216 页 | 1.44 MB | 1 年前3
共 546 条
- 1
- 2
- 3
- 4
- 5
- 6
- 55