mirror of
https://github.com/kataras/iris.git
synced 2025-12-21 11:57:02 +00:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user