|
|
@ -63,7 +63,7 @@ function app(socket) {
|
|
|
|
|
|
|
|
|
|
|
|
function initializeWebSocket() {
|
|
|
|
function initializeWebSocket() {
|
|
|
|
const ticketId = document.getElementById('ticketId').textContent.trim();
|
|
|
|
const ticketId = document.getElementById('ticketId').textContent.trim();
|
|
|
|
const wsUrl = `ws://${window.location.host}/ws/ticketroom/${ticketId}/`;
|
|
|
|
const wsUrl = `wss://${window.location.host}/ws/ticketroom/${ticketId}/`;
|
|
|
|
const socket = new WebSocket(wsUrl);
|
|
|
|
const socket = new WebSocket(wsUrl);
|
|
|
|
|
|
|
|
|
|
|
|
socket.onopen = () => {
|
|
|
|
socket.onopen = () => {
|
|
|
|