mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 08:16:28 +01: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:
parent
86f34dc5df
commit
26a5f9f3b0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user