MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / HandleWs

Function HandleWs

pkg/web/ws.go:67–72  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

65}
66
67func 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
74func getMessageType(jmsg map[string]any) string {
75 if str, ok := jmsg["type"].(string); ok {

Callers

nothing calls this directly

Calls 2

HandleWsInternalFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected