MCPcopy Create free account
hub / github.com/dank/rlapi / NewPsyNet

Function NewPsyNet

psynet.go:68–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66}
67
68func NewPsyNet() *PsyNet {
69 return &PsyNet{
70 client: &http.Client{},
71 requestID: &requestIDCounter{},
72 logger: slog.Default(),
73 gameVersion: gameVersion,
74 featureSet: featureSet,
75 buildID: strconv.Itoa(int(decodeBuildID(gameVersion))),
76 }
77}
78
79// Deprecated: Use NewPsyNet and SetLogger instead.
80func NewPsyNetWithLogger(logger *slog.Logger) *PsyNet {

Callers 12

mainFunction · 0.92
mainFunction · 0.92
RPCFunction · 0.92
mainFunction · 0.92
TestPsyNetRPC_RawMessageFunction · 0.85

Calls 1

decodeBuildIDFunction · 0.85