modify websocketserver to broker with callback functions
This commit is contained in:
4
main.go
4
main.go
@@ -6,7 +6,7 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/tecamino/tecamino-dbm/args"
|
||||
"github.com/tecamino/tecamino-dbm/dbm"
|
||||
"github.com/tecamino/tecamino-dbm/server"
|
||||
ws "github.com/tecamino/tecamino-dbm/websocket"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -23,7 +23,7 @@ func main() {
|
||||
|
||||
//initialize new server
|
||||
dbmHandler.Log.Debug("main", "initialize new server instance")
|
||||
s := server.NewServer(a.AllowOrigins)
|
||||
s := ws.NewServer(a.AllowOrigins)
|
||||
|
||||
//set routes
|
||||
dbmHandler.Log.Debug("main", "setting routes")
|
||||
|
Reference in New Issue
Block a user