
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
async-websocket-pool
Advanced tools
async-websocket-pool is a Python library that enables efficient creation and management of a pool of asynchronous WebSocket clients.
This repository contains a Python-based asynchronous WebSocket pool that allows for asynchronous connections to multiple WebSocket endpoints.
These instructions will get you a copy of the project up and running on your local machine.
You can install the async-websocket-pool
using pip:
pip install async-websocket-pool
Please note that this project requires Python 3.7 or later.
from async_websocket_pool import connect, run_pool
async def on_message(message):
print(message)
tasks = [
lambda: connect('ws://example1.com', on_message=on_message, timeout=5),
lambda: connect('ws://example2.com', on_message=on_message, timeout=5),
]
await run_pool(tasks)
For more information, please refer to the full documentation.
Contributions are always welcome! Please read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes.
mpol1t
This project is licensed under the MIT License
FAQs
async-websocket-pool is a Python library that enables efficient creation and management of a pool of asynchronous WebSocket clients.
We found that async-websocket-pool demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.