-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ec4332
commit 1b42df9
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
#ifndef FUNNEL_FILTER_HPP | ||
#define FUNNEL_FILTER_HPP | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env nix-shell | ||
#!nix-shell -i python3.9 -p "python39.withPackages(ps: with ps; [ websockets ])" | ||
|
||
import asyncio | ||
import json | ||
from websockets import connect | ||
|
||
config = { | ||
"regions": [0, 1], | ||
} | ||
|
||
raw_config = json.dumps(config); | ||
|
||
async def hello(uri): | ||
async with connect(uri) as websocket: | ||
await websocket.send(raw_config) | ||
while True: | ||
print(await websocket.recv()) | ||
#await websocket.pong() | ||
|
||
asyncio.run(hello("wss://socket.staging.dvb.solutions")) | ||
#asyncio.run(hello("ws://127.0.0.1:9001")) |