MCPcopy
hub / github.com/coder/websocket / Close

Method Close

internal/examples/chat/chat_test.go:245–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243}
244
245func (cl *client) Close() error {
246 return cl.c.Close(websocket.StatusNormalClosure, "")
247}
248
249// randString generates a random string with length n.
250func randString(n int) string {

Callers 7

ServeHTTPMethod · 0.45
echoFunction · 0.45
Test_echoServerFunction · 0.45
Test_chatServerFunction · 0.45
setupTestFunction · 0.45
publishMethod · 0.45
nextMessageMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected