dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 6bfcc592a645b9d2f66daf1051de1d1b7bed1aa4
parent 0ad0fbf10602762f41cc3cfc9e1488736c18ec44
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 24 May 2023 07:10:45 -0700

Add some doc

Diffstat:
Mpkg/web/handlers/handlers.go | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -5106,7 +5106,9 @@ Loop: } } + // Display a big banner stating the connection is closed. _, _ = c.Response().Write([]byte(fmt.Sprintf(`<div class="connection-closed">Connection closed</div>`))) + // Auto refresh the page after 5sec so that the client reconnect after the app has restarted _, _ = c.Response().Write([]byte(`<meta http-equiv="refresh" content="5" />`)) c.Response().Flush() return nil