MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / observeWsURL

Method observeWsURL

cmd/inject-cli/main.go:236–249  ·  view source on GitHub ↗
(sessionID string)

Source from the content-addressed store, hash-verified

234}
235
236func (c *apiClient) observeWsURL(sessionID string) string {
237 u, err := url.Parse(c.baseURL)
238 if err != nil {
239 return ""
240 }
241 switch u.Scheme {
242 case "https":
243 u.Scheme = "wss"
244 default:
245 u.Scheme = "ws"
246 }
247 u.Path = "/v0/management/sessions/" + sessionID + "/observe"
248 return u.String()
249}
250
251func (c *apiClient) cachedSessionIDs() []string {
252 sessions, err := c.getSessions()

Callers 1

cmdObserveFunction · 0.80

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected