MCPcopy
hub / github.com/nats-io/nats.go / NewDefaultConnection

Function NewDefaultConnection

test/helper_test.go:91–93  ·  view source on GitHub ↗

Creating client connections NewDefaultConnection

(t tLogger)

Source from the content-addressed store, hash-verified

89
90// NewDefaultConnection
91func NewDefaultConnection(t tLogger) *nats.Conn {
92 return NewConnection(t, nats.DefaultPort)
93}
94
95// NewConnection forms connection on a given port.
96func NewConnection(t tLogger, port int) *nats.Conn {

Calls 1

NewConnectionFunction · 0.70

Tested by

no test coverage detected