From 26a5f9f3b0e7ada9d2f14483c26ebb4367bffe94 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Tue, 14 Feb 2017 20:56:23 +0200 Subject: [PATCH] Set the NewWebsocketServer's configuration to the user's station, these can be changed later. Preparing for writing the tests. Former-commit-id: 5d5c19c08fbd5b1d13b79a279e1a230e438874c3 --- websocket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websocket.go b/websocket.go index c0831a15..cb30ca0b 100644 --- a/websocket.go +++ b/websocket.go @@ -36,7 +36,7 @@ type ( // NewWebsocketServer returns a new empty unitialized websocket server // it runs on first OnConnection 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