Skip to content

shubinmi/wstonats

Repository files navigation

NATS <=> WebSocket GateWay

Easy way to use NATS EventBus directly on front-end side

Go Report Card Build Status Open Source Love MIT Licence Codacy Badge

Features

  • High performance proxy server
  • TLS support
  • Protect data transfer by using own firewall

How it works

Use on your front side js library from here See example here

How to implement

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)
}

About

NATS <=> WebSocket GateWay

Resources

License

Stars

Watchers

Forks

Packages

No packages published