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

fix web.wss

This commit is contained in:
shylinux 2019-09-22 18:02:30 +08:00
parent 041184e3a5
commit 76fc9443f9
5 changed files with 7 additions and 6 deletions

View File

@ -181,7 +181,7 @@ var Index = &ctx.Context{Name: "cli", Help: "管理中心",
map[string]interface{}{"os": "darwin", "cpu": "amd64"},
}, "tmp": "var/tmp/go", "dep": []interface{}{
"github.com/nfs/termbox-go",
"github.com/gorilla/websocket"
"github.com/gorilla/websocket",
"github.com/go-sql-driver/mysql",
"github.com/redigo/redis",
"github.com/gomarkdown/markdown",

View File

@ -4,5 +4,5 @@ var version = struct {
host string
self int
}{
"2019-09-22 15:44:02", "mac", 660,
"2019-09-22 16:06:14", "com", 628,
}

View File

@ -1,5 +1,5 @@
fun meet "第一眼" private \
fun meet "第一眼" protected \
text "love" name table imports plugin_table \
text "date" name when \
text "" name where \
@ -15,14 +15,14 @@ end
kit date "日历" "index.js" "index.css" protected "cli.date" _ nature _ \
\ space true format '<span class="%s">%s</span>' "s20060102" \
text "2019-07-08" name "起始时间" \
text "date" name "截止时间" \
text "date" name "date" \
text "love" name "table" imports plugin_table \
text "when" name "when" \
text "where" name "where" \
button "查看" action auto \
button "显示" click show
fun delay "以后告诉你" private \
fun delay "以后告诉你" protected \
text "delay" name table imports plugin_table \
text "date" name when \
text "" name what view long \

View File

@ -295,6 +295,7 @@ var page = Page({check: true,
engine.help("action")
engine.help("storm")
},
reload: function() {kit.reload()},
help: function() {
var args = kit.List(arguments), cb, target
if (args.length > 0 && page.pane && page.pane.Pane[args[0]] && page.pane.Pane[args[0]].Plugin) {

View File

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