Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
This project is based on lightstreamer-client
pip install async-lightstreamer
# or if you are using poetry
poetry add async-lightstreamer
This client creates a task for receving new messages You can pass TaskGroup to LightstreamerClient, and client will use given TaskGroup for creating task
async with asyncio.TaskGroup() as tg:
async_lightstreamer.LightstreamerClient(
lightstreamer_username="<username>",
lightstreamer_password="<password>",
lightstreamer_url="<url>",
adapter_set="<adapter>",
task_group=tg,
)
If you set should_reconnect
flag to true in LightstreamerClient, client will reconnect
and subscribe all subscriptions
async_lightstreamer.LightstreamerClient(
lightstreamer_username="<username>",
lightstreamer_password="<password>",
lightstreamer_url="<url>",
adapter_set="<adapter>",
should_reconnect = True,
reconnect_retries = 100, # set to -1 for infitine retry
)
import asyncio
import async_lightstreamer
async def main():
lc = async_lightstreamer.LightstreamerClient(
lightstreamer_username="<username>",
lightstreamer_password="<password>",
lightstreamer_url="<url>",
adapter_set="<adapter>",
)
await lc.connect()
async def callback(data) -> None:
print(data)
await lc.subscribe(
subscription=async_lightstreamer.LightstreamerSubscription(
mode=async_lightstreamer.Mode.MERGE,
items=["item1", "item2"],
fields=["field1", "field2"],
adapter="adapter",
).addlistener(callback),
)
await asyncio.sleep(60)
await lc.disconnect()
asyncio.run(main())
FAQs
Unknown package
We found that async-lightstreamer 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.