[change] websocket -> websocket server

This commit is contained in:
Max 2022-07-16 22:26:41 +08:00
parent ee40974f07
commit ef75f4cc4a

View file

@ -36,7 +36,7 @@ func LoadFrom(dir string, prefix string) error {
err = share.Walk(dir, ".ws.json", func(root, filename string) {
name := prefix + share.SpecName(root, filename)
content := share.ReadFile(filename)
_, err := gou.LoadWebSocket(string(content), name)
_, err := gou.LoadWebSocketServer(string(content), name)
if err != nil {
log.With(log.F{"root": root, "file": filename}).Error(err.Error())
}