Beamable SDK
Public Member Functions | Protected Attributes | Properties | List of all members
Beamable.Server.MicroserviceRequester Class Reference
Inheritance diagram for Beamable.Server.MicroserviceRequester:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Server.MicroserviceRequester:
Collaboration graph
[legend]

Public Member Functions

 MicroserviceRequester (IMicroserviceArgs env, RequestContext requestContext, SocketRequesterContext socketContext)
 
async Task Authenticate ()
 
Promise< UnitAcknowledge (RequestContext ctx, WebsocketErrorResponse error=null)
 Acknowledge a message from the websocket. More...
 
Promise< T > Request< T > (Method method, string uri, object body=null, bool includeAuthHeader=true, Func< string, T > parser=null, bool useCache=false)
 
Promise< EmptyResponseInitializeSubscription ()
 Each socket only needs to set up one subscription to the server. All events will get piped to the client. It's the client job to filter the events, and decide what is valuable. More...
 
IBeamableRequester WithAccessToken (TokenResponse tokenResponse)
 
string EscapeURL (string url)
 

Protected Attributes

readonly RequestContext _requestContext
 

Properties

IAccessToken AccessToken [get]
 
- Properties inherited from Beamable.Common.Api.IBeamableRequester
IAccessToken AccessToken [get]
 

Member Function Documentation

◆ Acknowledge()

Promise<Unit> Beamable.Server.MicroserviceRequester.Acknowledge ( RequestContext  ctx,
WebsocketErrorResponse  error = null 
)
inline

Acknowledge a message from the websocket.

Parameters
ctxThe request you wish to ack
erroran error, or null for a 200 ack.
Returns

◆ InitializeSubscription()

Promise<EmptyResponse> Beamable.Server.MicroserviceRequester.InitializeSubscription ( )
inline

Each socket only needs to set up one subscription to the server. All events will get piped to the client. It's the client job to filter the events, and decide what is valuable.

Returns

The documentation for this class was generated from the following file: