mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-26 09:14:06 +08:00
add web.wss
This commit is contained in:
parent
c0ced3934d
commit
041184e3a5
@ -205,7 +205,7 @@ ctx = context = {
|
|||||||
xhr.send(args.join("&"))
|
xhr.send(args.join("&"))
|
||||||
},
|
},
|
||||||
WSS: function(cb) {
|
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) {
|
s.onopen = function(event) {
|
||||||
kit.Log(event)
|
kit.Log(event)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user