modify websocketserver to broker with callback functions
This commit is contained in:
@@ -12,8 +12,8 @@ import (
|
||||
"github.com/tecamino/tecamino-dbm/cert"
|
||||
"github.com/tecamino/tecamino-dbm/dbm"
|
||||
"github.com/tecamino/tecamino-dbm/models"
|
||||
"github.com/tecamino/tecamino-dbm/server"
|
||||
"github.com/tecamino/tecamino-dbm/utils"
|
||||
ws "github.com/tecamino/tecamino-dbm/websocket"
|
||||
)
|
||||
|
||||
func TestCreateDps(t *testing.T) {
|
||||
@@ -142,7 +142,7 @@ func TestUpdateDps(t *testing.T) {
|
||||
|
||||
func TestServer(t *testing.T) {
|
||||
fmt.Println("start")
|
||||
server := server.NewServer([]string{".*"})
|
||||
server := ws.NewServer([]string{".*"})
|
||||
|
||||
t.Fatal(server.ServeHttp("http://localhost", 8100))
|
||||
}
|
||||
|
Reference in New Issue
Block a user