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

Method cloneWithDefaults

accept.go:84–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82}
83
84func (opts *AcceptOptions) cloneWithDefaults() *AcceptOptions {
85 var o AcceptOptions
86 if opts != nil {
87 o = *opts
88 }
89 return &o
90}
91
92// Accept accepts a WebSocket handshake from a client and upgrades the
93// connection to a WebSocket.

Callers 1

acceptFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected