mirror of
https://github.com/neogeek23/drawshare.git
synced 2026-02-04 11:08:21 +00:00
removed wss stuff, seems to not work
This commit is contained in:
parent
08c8ce0aab
commit
8e22d40510
@ -4,5 +4,5 @@ from django.conf.urls import url
|
||||
from . import consumers
|
||||
|
||||
websocket_urlpatterns = [
|
||||
url(r'^wss/drawshare/(?P<room_name>[^/]+)/$', consumers.DrawConsumer),
|
||||
url(r'^ws/drawshare/(?P<room_name>[^/]+)/$', consumers.DrawConsumer),
|
||||
]
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user