Closed apanghu closed 1 year ago
$(document).on('click', '#danmu_open', function () { let url_start = window.location.host; let protocol = window.location.protocol; $(".connect-docket").val((protocol === 'http:' ? "ws://" : "wss://") + url_start + "/danmu/sub"); });
感谢提供 之后修复版本会上
2.6.4 fixed it
因为如果域名为https协议会导致不能连接上 ws://xxxx/danmu/sub 因为ws只支持http协议,不支持https协议, 要用(wss://xxxx/danmu/sub)