I've just started to explore Beego web framework (v1.10.0) and created new project using bee tool by this command bee new hello
Assuming documentation Beego provides hot compile
freature to take effect of any changes on the fly. Also there is reload.min.js
file with a function inside for page reloading which listens for updates via websocket channel from a server.
By default websocket address is set to ws://localhost:12450/reload
but I can't find how to configure websocket endpoint on the server side. So the client side can not establish websocket connection with server by default configs and not able to listen for updates.
How to configure websocket endpoint for hot compile
feature in Beego?
Is it possible to simply set this params (host, port, endpoint) for websocket in app.conf
file?
My app.conf
file now:
appname = hello
httpport = 8080
runmode = dev
I really want to use this awesome feature fully.
U.P.D.
Actually, I found this package /go/src/github.com/astaxie/beego/grace/
for hot reloading feature but have no idea how to fix it. Seems it is under development since there is no configuration for websocket reload
endpoint with port 12450
as I it is in reload.min.js
file. Ok..