diff --git a/gestaoRaul/comandas/__pycache__/htmx_views.cpython-310.pyc b/gestaoRaul/comandas/__pycache__/htmx_views.cpython-310.pyc index 363284e..7dff6ed 100644 Binary files a/gestaoRaul/comandas/__pycache__/htmx_views.cpython-310.pyc and b/gestaoRaul/comandas/__pycache__/htmx_views.cpython-310.pyc differ diff --git a/gestaoRaul/comandas/htmx_views.py b/gestaoRaul/comandas/htmx_views.py index 2aea7a9..9bd6182 100644 --- a/gestaoRaul/comandas/htmx_views.py +++ b/gestaoRaul/comandas/htmx_views.py @@ -13,7 +13,7 @@ import asyncio import websockets async def enviar_mensagem(msg): - 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(msg) print(f"> Enviado: {msg}") @@ -66,7 +66,17 @@ def addProduct(request, product_id, comanda_id): order.save() msg = JsonResponse({ 'type': 'broadcast', - 'message': f'