This commit is contained in:
Lain Iwakura 2025-07-12 01:35:30 +03:00
parent 66ac28c0f4
commit 1f7379e6a7
No known key found for this signature in database
GPG Key ID: C7C18257F2ADC6F8

View File

@ -71,8 +71,10 @@ func wsHandler(w http.ResponseWriter, r *http.Request) {
} else if buffer == "answers" { } else if buffer == "answers" {
conn.WriteJSON(map[string]string{"action": "show_message", "message": "it must be easy for you, isn't that right?"}) conn.WriteJSON(map[string]string{"action": "show_message", "message": "it must be easy for you, isn't that right?"})
buffer = "" 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) { func handler(w http.ResponseWriter, r *http.Request) {