Skip to content

Commit

Permalink
Add main script for SteamWebPipes
Browse files Browse the repository at this point in the history
  • Loading branch information
woctezuma committed Jun 15, 2022
1 parent cea1aa2 commit e376573
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions run_SteamWebPipes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import asyncio
import websockets


async def handler(websocket):
while True:
message = await websocket.recv()
print(message)


async def main():
url = "ws://localhost:8181"
async with websockets.connect(url) as ws:
await handler(ws)
await asyncio.Future() # run forever


if __name__ == "__main__":
asyncio.run(main())

0 comments on commit e376573

Please sign in to comment.