websockets Documentation
Release 2.2Limitations 17 7 License 19 Python Module Index 21 websockets is a library for developing WebSocket servers and clients in Python. It implements RFC 6455 with a focus on correctness and simplicity Example Here’s a WebSocket server example. It reads a name from the client and sends a message. #!/usr/bin/env python import asyncio import websockets @asyncio.coroutine def hello(websocket, path): name name = yield from websocket.recv() print("{}".format(name)) greeting = "Hello {}!" yield from websocket.send(greeting) print("{}".format(greeting)) start_server =0 码力 | 27 页 | 143.46 KB | 2 年前3
websockets Documentation
Release 1.0Limitations 15 6 License 17 Python Module Index 19 websockets is a library for developing WebSocket servers and clients in Python. It implements RFC 6455 with a focus on correctness and simplicity Example Here’s a WebSocket server example. It reads a name from the client and sends a message. #!/usr/bin/env python import asyncio import websockets @asyncio.coroutine def hello(websocket, uri): name name = yield from websocket.recv() print("{}".format(name)) greeting = "Hello {}!".format(name) print("> {}".format(greeting)) websocket.send(greeting) start_server0 码力 | 25 页 | 137.62 KB | 2 年前3
Tornado 6.2 Documentation
[https://en.wikipedia.org/wiki/Push_technology#Long_polling], WebSockets [https://en.wikipedia.org/wiki/WebSocket], and other applications that require a long-lived connection to each user. ## Quick links • Current — Escaping and string manipulation ☐ tornado.locale — Internationalization support ○ tornado.websocket — Bidirectional communication to the browser • HTTP servers and clients ☐ tornado.httpserver — [http://en.wikipedia.org/wiki/Push_technology#Long_polling], WebSockets [http://en.wikipedia.org/wiki/WebSocket], and other applications that require a long-lived connection to each user. Tornado can be roughly0 码力 | 407 页 | 385.03 KB | 2 年前3
Tornado 6.4 Documentation
[https://en.wikipedia.org/wiki/Push_technology#Long_polling], WebSockets [https://en.wikipedia.org/wiki/WebSocket], and other applications that require a long-lived connection to each user. ## Quick links • Current — Escaping and string manipulation ☐ tornado.locale — Internationalization support ○ tornado.websocket — Bidirectional communication to the browser • HTTP servers and clients ☐ tornado.httpserver — [http://en.wikipedia.org/wiki/Push_technology#Long_polling], WebSockets [http://en.wikipedia.org/wiki/WebSocket], and other applications that require a long-lived connection to each user. Tornado can be roughly0 码力 | 432 页 | 402.58 KB | 2 年前3
websockets Documentation
Release 3.2Changelog 20 3.7 License 23 Python Module Index 25 websockets is a library for developing WebSocket servers and clients in Python. It implements RFC 6455 with a focus on correctness and simplicity Here’s a WebSocket server example. It reads a name from the client, sends a greeting, and closes the connection. #!/usr/bin/env python import asyncio import websockets async def hello(websocket, path): path): name = await websocket.recv() print("{}".format(name)) greeting = "Hello {}!".format(name) await websocket.send(greeting) print("}>{}".format(greeting))0 码力 | 32 页 | 170.46 KB | 2 年前3
Spring Framework 3.1.0 Changelog0 码力 | 22 页 | 60.32 KB | 2 年前3
Apache ActiveMQ Artemis 2.23.1 User Manual0 码力 | 503 页 | 6.35 MB | 2 年前3
Falcon v3.1.1-b1 DocumentationFalcon tries to do as little as possible while remaining highly effective. • ASGI, WSGI, and WebSocket support • Native asyncio support • No reliance on magic globals for routing and state management Request & Response - WSGI Request & Response - ASGI Request & Response ○ WebSocket (ASGI Only). - Usage - Lost Connections - Error Handling - Media Handlers Falcon tries to do as little as possible while remaining highly effective. • ASGI, WSGI, and WebSocket support • Native asyncio support • No reliance on magic globals for routing and state management0 码力 | 540 页 | 476.61 KB | 2 年前3
Spring Framwork Web on Servlet Stack v5.3.36 SNAPSHOT4.1. Introduction to WebSocket 198 4.1.1. HTTP Versus WebSocket 199 4.1.2. When to Use WebSockets 199 4.2. WebSocket API 200 4.2.1. WebSocketHandler 200 4.2.2. WebSocket Handshake 202 4.2.3 STOMP 216 4.4.1. Overview 216 4.4.2. Benefits ..... 218 4.4.3. Enable STOMP ..... 218 4.4.4. WebSocket Server ..... 220 4.4.5. Flow of Messages ..... 221 4.4.6. Annotated Controllers ..... 224 17. Events ..... 238 4.4.18. Interception ..... 239 4.4.19. STOMP Client ..... 240 4.4.20. WebSocket Scope ..... 241 4.4.21. Performance ..... 243 4.4.22. Monitoring ..... 245 4.4.23. Testing0 码力 | 259 页 | 3.58 MB | 2 年前3
websockets Documentation
Release 2.7Changelog 18 3.7 License 20 Python Module Index 21 websockets is a library for developing WebSocket servers and clients in Python. It implements RFC 6455 with a focus on correctness and simplicity example Here’s a WebSocket server example. It reads a name from the client and sends a message. #!/usr/bin/env python import asyncio import websockets @asyncio.coroutine def hello(WebSocket, path): name name = yield from websocket.recv() print("{}".format(name)) greeting = "Hello {}!".format(name) yield from websocket.send(greeting) print("{}".format(greeting)) start_server0 码力 | 28 页 | 157.50 KB | 2 年前3
共 573 条
- 1
- 2
- 3
- 4
- 5
- 6
- 58













