scraoer print out only id not whole event on receive
This commit is contained in:
parent
b92f2df4b2
commit
3ace323b48
@ -12,7 +12,7 @@ async def relay_websockets(input_websocket, output_websocket, kinds, sub_id):
|
||||
event = json.loads(await input_websocket.recv())
|
||||
try:
|
||||
if(event[0] == "EVENT"):
|
||||
print("Got event: ", event)
|
||||
print("Got event: ", event[2]['id'])
|
||||
# Forward the event to output websocket
|
||||
await output_websocket.send(json.dumps(["EVENT", sub_id, event[2]]))
|
||||
elif(event[0] == "EOSE"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user