MCPcopy
hub / github.com/gorilla/websocket / makeWsProto

Function makeWsProto

client_server_test.go:127–129  ·  client_server_test.go::makeWsProto
(s string)

Source from the content-addressed store, hash-verified

125}
126
127func makeWsProto(s string) string {
128 return "ws" + strings.TrimPrefix(s, "http")
129}
130
131func sendRecv(t *testing.T, ws *Conn) {
132 const message = "Hello World!"

Callers 5

newServerFunction · 0.85
newTLSServerFunction · 0.85
TestRespOnBadHandshakeFunction · 0.85
TestNextProtosFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected