From e52a062ff5a3190dc46557de234177ea96453588 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Fri, 17 Feb 2017 07:19:53 +0200 Subject: [PATCH] wss example Former-commit-id: fb1aad51214981533565129b784e6ab88c6a7a1a --- adaptors/websocket/_examples/websocket_secure/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adaptors/websocket/_examples/websocket_secure/main.go b/adaptors/websocket/_examples/websocket_secure/main.go index 2ceee5ec..b6351f3e 100644 --- a/adaptors/websocket/_examples/websocket_secure/main.go +++ b/adaptors/websocket/_examples/websocket_secure/main.go @@ -56,7 +56,7 @@ func main() { // send our custom javascript source file before client really asks for that // using the new go v1.8's HTTP/2 Push. // Note that you have to listen using ListenTLS/ListenLETSENCRYPT in order this to work. - if err := ctx.ResponseWriter.Push("/js/chat.js", nil); err != nil { + if err := ctx.Push("/js/chat.js", nil); err != nil { app.Log(iris.DevMode, err.Error()) } ctx.Render("client.html", clientPage{"Client Page", ctx.Host()})