Set the NewWebsocketServer's configuration to the user's station, these can be changed later. Preparing for writing the tests.

Former-commit-id: 5d5c19c08fbd5b1d13b79a279e1a230e438874c3
This commit is contained in:
Gerasimos (Makis) Maropoulos 2017-02-14 20:56:23 +02:00
parent 86f34dc5df
commit 26a5f9f3b0

View File

@ -36,7 +36,7 @@ type (
// NewWebsocketServer returns a new empty unitialized websocket server // NewWebsocketServer returns a new empty unitialized websocket server
// it runs on first OnConnection // it runs on first OnConnection
func NewWebsocketServer(station *Framework) *WebsocketServer { func NewWebsocketServer(station *Framework) *WebsocketServer {
return &WebsocketServer{station: station, Server: websocket.New(), Config: DefaultWebsocketConfiguration()} return &WebsocketServer{station: station, Server: websocket.New(), Config: station.Config.Websocket}
} }
// NewWebsocketServer creates the client side source route and the route path Endpoint with the correct Handler // NewWebsocketServer creates the client side source route and the route path Endpoint with the correct Handler