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

Method wsURL

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

Source from the content-addressed store, hash-verified

219}
220
221func (c *apiClient) wsURL(sessionID string) string {
222 u, err := url.Parse(c.baseURL)
223 if err != nil {
224 return ""
225 }
226 switch u.Scheme {
227 case "https":
228 u.Scheme = "wss"
229 default:
230 u.Scheme = "ws"
231 }
232 u.Path = "/v0/management/sessions/" + sessionID + "/ws"
233 return u.String()
234}
235
236func (c *apiClient) observeWsURL(sessionID string) string {
237 u, err := url.Parse(c.baseURL)

Callers 1

sessionREPLFunction · 0.80

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected