1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-19 10:57:05 +00:00

Feature Request: *http.Request access from Websockets. iris.Config.Websocket.IDGenerator custom connection's ID generator added too.

Example:

-
https://github.com/iris-contrib/examples/blob/master/websocket/main.go#L34

Relative commits to kataras/go-websocket:
-
550fc8b32e

-
62c2d989d8
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-01-09 06:23:49 +02:00
parent d5d113b4ca
commit c476fe8921
5 changed files with 131 additions and 25 deletions

View File

@@ -83,6 +83,7 @@ func (ws *WebsocketServer) init() {
ws.station.ReleaseCtx(ctx)
},
CheckOrigin: c.CheckOrigin,
IDGenerator: c.IDGenerator,
})
}