websocket part2 | notificação

This commit is contained in:
2025-03-04 22:17:30 -03:00
parent 3a7cbfc413
commit d366d2db97
11 changed files with 195 additions and 91 deletions

View File

@@ -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}")