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

Function getMessageType

pkg/web/ws.go:74–79  ·  view source on GitHub ↗
(jmsg map[string]any)

Source from the content-addressed store, hash-verified

72}
73
74func getMessageType(jmsg map[string]any) string {
75 if str, ok := jmsg["type"].(string); ok {
76 return str
77 }
78 return ""
79}
80
81func getStringFromMap(jmsg map[string]any, key string) string {
82 if str, ok := jmsg[key].(string); ok {

Callers 1

ReadLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected