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

Method sendRequestSync

psynetrpc.go:305–312  ·  view source on GitHub ↗
(ctx context.Context, service string, data interface{}, result interface{})

Source from the content-addressed store, hash-verified

303}
304
305func (p *PsyNetRPC) sendRequestSync(ctx context.Context, service string, data interface{}, result interface{}) error {
306 respCh, err := p.sendRequestAsync(ctx, service, data)
307 if err != nil {
308 return fmt.Errorf("failed to send async request for service: %s, err: %w", service, err)
309 }
310
311 return p.awaitResponse(ctx, respCh, result)
312}
313
314// Events returns a channel that receives raw messages and connection events
315func (p *PsyNetRPC) Events() <-chan *Event {

Callers 15

GetBanStatusMethod · 0.95
GetProfilesMethod · 0.95
GetXPMethod · 0.95
GetCreatorCodeMethod · 0.95
ReportPlayerMethod · 0.95
GetMTXCatalogMethod · 0.95
StartMTXPurchaseMethod · 0.95
ClaimMTXEntitlementsMethod · 0.95
StartMatchmakingMethod · 0.95

Calls 2

sendRequestAsyncMethod · 0.95
awaitResponseMethod · 0.95