(w http.ResponseWriter, r *http.Request)
| 65 | } |
| 66 | |
| 67 | func HandleWs(w http.ResponseWriter, r *http.Request) { |
| 68 | err := HandleWsInternal(w, r) |
| 69 | if err != nil { |
| 70 | http.Error(w, err.Error(), http.StatusInternalServerError) |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | func getMessageType(jmsg map[string]any) string { |
| 75 | if str, ok := jmsg["type"].(string); ok { |
nothing calls this directly
no test coverage detected