Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Forkdelta example
import websockets
import asyncio
async def hello():
uri = 'wss://api.forkdelta.app/socket.io/'
async with websockets.connect(uri,) as websocket:
# await websocket.send('getMarket')
await websocket.send('getMarket')
res = await websocket.recv()
print(f'< {res}')
if __name__ == '__main__':
asyncio.get_event_loop().run_until_complete(hello())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment