[change] websocket -> websocket server
This commit is contained in:
parent
ee40974f07
commit
ef75f4cc4a
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ func LoadFrom(dir string, prefix string) error {
|
||||||
err = share.Walk(dir, ".ws.json", func(root, filename string) {
|
err = share.Walk(dir, ".ws.json", func(root, filename string) {
|
||||||
name := prefix + share.SpecName(root, filename)
|
name := prefix + share.SpecName(root, filename)
|
||||||
content := share.ReadFile(filename)
|
content := share.ReadFile(filename)
|
||||||
_, err := gou.LoadWebSocket(string(content), name)
|
_, err := gou.LoadWebSocketServer(string(content), name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.With(log.F{"root": root, "file": filename}).Error(err.Error())
|
log.With(log.F{"root": root, "file": filename}).Error(err.Error())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue