1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

add more websocket helpers from neffos project

Former-commit-id: fcb9ec46849fd745fe0f62524d9b85067a334048
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-06-15 14:07:35 +03:00
parent c93093d6c2
commit 164f24dec4
3 changed files with 23 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ func main() {
ctx, cancel := context.WithDeadline(context.Background(), time.Now().Add(dialAndConnectTimeout))
defer cancel()
client, err := websocket.Dial(ctx, websocket.GorillaDialer, endpoint, clientEvents)
client, err := websocket.Dial(ctx, websocket.DefaultGorillaDialer, endpoint, clientEvents)
if err != nil {
panic(err)
}