mirror of
https://github.com/neogeek23/drawshare.git
synced 2026-02-04 02:58:16 +00:00
trying https again but with wss routing
This commit is contained in:
parent
5a4b030ed6
commit
94cfd2803a
@ -4,5 +4,5 @@ from django.conf.urls import url
|
||||
from . import consumers
|
||||
|
||||
websocket_urlpatterns = [
|
||||
url(r'^ws/drawshare/(?P<room_name>[^/]+)/$', consumers.DrawConsumer),
|
||||
url(r'^wss/drawshare/(?P<room_name>[^/]+)/$', consumers.DrawConsumer),
|
||||
]
|
||||
@ -38,7 +38,7 @@
|
||||
|
||||
let drawSocket = new WebSocket(
|
||||
'wss://' + window.location.host +
|
||||
'/ws/drawshare/' + roomName + '/');
|
||||
'/wss/drawshare/' + roomName + '/');
|
||||
|
||||
drawSocket.onmessage = function(e) {
|
||||
let data = JSON.parse(e.data);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user