update
This commit is contained in:
parent
66ac28c0f4
commit
1f7379e6a7
4
main.go
4
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user