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