mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
websocket part2 | notificação
This commit is contained in:
@@ -12,7 +12,7 @@ from gestaoRaul.decorators import group_required
|
||||
|
||||
|
||||
async def enviar_mensagem(message):
|
||||
uri = "ws://localhost:8765" # Substitua pela URI do seu servidor WebSocket
|
||||
uri = "ws://192.168.1.150:8765"
|
||||
async with websockets.connect(uri) as websocket:
|
||||
await websocket.send(message)
|
||||
print(f"> Enviado: {message}")
|
||||
|
||||
Reference in New Issue
Block a user