From 8e22d405103107832a5f71790d023fac7812dafc Mon Sep 17 00:00:00 2001 From: brad stein Date: Mon, 22 Oct 2018 23:07:20 -0500 Subject: [PATCH] removed wss stuff, seems to not work --- drawshare/routing.py | 2 +- drawshare/templates/drawshare/room.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drawshare/routing.py b/drawshare/routing.py index 1d1552a..524d4e4 100644 --- a/drawshare/routing.py +++ b/drawshare/routing.py @@ -4,5 +4,5 @@ from django.conf.urls import url from . import consumers websocket_urlpatterns = [ - url(r'^wss/drawshare/(?P[^/]+)/$', consumers.DrawConsumer), + url(r'^ws/drawshare/(?P[^/]+)/$', consumers.DrawConsumer), ] \ No newline at end of file diff --git a/drawshare/templates/drawshare/room.html b/drawshare/templates/drawshare/room.html index 562d0d4..a51ee0e 100644 --- a/drawshare/templates/drawshare/room.html +++ b/drawshare/templates/drawshare/room.html @@ -37,8 +37,8 @@ var roomName = {{ room_name_json }}; var drawSocket = new WebSocket( - 'wss://' + window.location.host + - '/wss/drawshare/' + roomName + '/'); + 'ws://' + window.location.host + + '/ws/drawshare/' + roomName + '/'); drawSocket.onmessage = function(e) { let data = JSON.parse(e.data);