diff --git a/_examples/structuring/bootstrap/bootstrap/bootstrapper.go b/_examples/structuring/bootstrap/bootstrap/bootstrapper.go
index f8b94942..3674adeb 100644
--- a/_examples/structuring/bootstrap/bootstrap/bootstrapper.go
+++ b/_examples/structuring/bootstrap/bootstrap/bootstrapper.go
@@ -54,14 +54,10 @@ func (b *Bootstrapper) SetupSessions(expires time.Duration, cookieHashKey, cooki
}
// SetupWebsockets prepares the websocket server.
-func (b *Bootstrapper) SetupWebsockets(endpoint string, onConnection websocket.ConnectionFunc) {
- ws := websocket.New(websocket.Config{})
- ws.OnConnection(onConnection)
+func (b *Bootstrapper) SetupWebsockets(endpoint string, handler websocket.ConnHandler) {
+ ws := websocket.New(websocket.DefaultGorillaUpgrader, handler)
- b.Get(endpoint, ws.Handler())
- b.Any("/iris-ws.js", func(ctx iris.Context) {
- ctx.Write(websocket.ClientSource)
- })
+ b.Get(endpoint, websocket.Handler(ws))
}
// SetupErrorHandlers prepares the http error handlers
diff --git a/_examples/tutorial/vuejs-todo-mvc/src/web/public/index.html b/_examples/tutorial/vuejs-todo-mvc/src/web/public/index.html
index 4f44b0d6..6b43069d 100644
--- a/_examples/tutorial/vuejs-todo-mvc/src/web/public/index.html
+++ b/_examples/tutorial/vuejs-todo-mvc/src/web/public/index.html
@@ -12,7 +12,7 @@
-
+