Easy way to use NATS EventBus directly on front-end side
- High performance proxy server
- TLS support
- Protect data transfer by using own firewall
Use on your front side js library from here See example here
package main
import (
"github.com/shubinmi/wstonats"
)
func main() {
proxySetting := new(wstonats.ProxySetting)
proxySetting.WsAddr = "0.0.0.0:8910"
proxySetting.NatsAddr = "0.0.0.0:4222"
proxySetting.DebugLevel = wstonats.DebugInfo
wstonats.Start(proxySetting)
}