1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-26 01:04:06 +08:00

add web.wss

This commit is contained in:
shaoying 2019-09-22 16:02:23 +08:00
parent c0ced3934d
commit 041184e3a5

View File

@ -205,7 +205,7 @@ ctx = context = {
xhr.send(args.join("&"))
},
WSS: function(cb) {
var s = new WebSocket("ws://"+location.host+"/wss")
var s = new WebSocket(location.protocol.replace("http", "ws")+"://"+location.host+"/wss")
s.onopen = function(event) {
kit.Log(event)
}