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

Function RunDefaultServer

test/helper_test.go:111–113  ·  view source on GitHub ↗

Running nats server in separate Go routines RunDefaultServer will run a server on the default port.

()

Source from the content-addressed store, hash-verified

109
110// RunDefaultServer will run a server on the default port.
111func RunDefaultServer() *server.Server {
112 return RunServerOnPort(nats.DefaultPort)
113}
114
115// RunServerOnPort will run a server on the given port.
116func RunServerOnPort(port int) *server.Server {

Callers 15

TestDefaultConnectionFunction · 0.70
TestConnectionStatusFunction · 0.70
TestConnClosedCBFunction · 0.70
TestClosedConnectionsFunction · 0.70
TestConnectVerboseFunction · 0.70
TestCallbacksOrderFunction · 0.70
TestConnectHandlerFunction · 0.70
TestUseDefaultTimeoutFunction · 0.70
TestLastErrorNoRaceFunction · 0.70

Calls 1

RunServerOnPortFunction · 0.70

Tested by

no test coverage detected