diff --git a/main.go b/main.go index b9685c9..ab01c79 100644 --- a/main.go +++ b/main.go @@ -71,8 +71,10 @@ func wsHandler(w http.ResponseWriter, r *http.Request) { } else if buffer == "answers" { conn.WriteJSON(map[string]string{"action": "show_message", "message": "it must be easy for you, isn't that right?"}) buffer = "" + } else if buffer == "noise" { + conn.WriteJSON(map[string]string{"action": "redirect", "url": "https://noiseprotocol.org/"}) + buffer = "" } - } } func handler(w http.ResponseWriter, r *http.Request) {