I am using the asyncio and websocket package in python just to test the connection and events, here is the code import asyncio import websockets async def connect_to_websocket(url): async with websockets.connect(url) as websocket: while True: event = await websocket.recv() if event == "playing_now": print("Received playing_now event!") websocket_url = 'wss://listenbrainz.org/socket.io/' asyncio.get_event_loop().run_until_complete(connect_to_websocket(websocket_url))