3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/platform/Result.h"
12namespace Json {
class Value; }
13namespace JsonRpc {
class IResultHandler; }
14namespace JsonRpc {
class JsonRpcError; }
19class JsonRpcProvider :
public ::std::enable_shared_from_this<::JsonRpc::JsonRpcProvider> {
78 ::std::shared_ptr<::ISignalingJsonRpcInterop> signalingServiceInterop,
79 ::std::vector<::std::shared_ptr<::IJsonRpcComponent>> components
89 MCNAPI
void onMessage(::std::string_view incomingMessage);
91 MCNAPI ::std::unique_ptr<::std::string, ::std::function<void(::std::string*)>>
101 ::std::shared_ptr<::ISignalingJsonRpcInterop> signalingServiceInterop,
102 ::std::vector<::std::shared_ptr<::IJsonRpcComponent>> components
Definition IJsonRpcComponent.h:10
Definition ISignalingJsonRpcInterop.h:21
Definition JsonRpcProvider.h:19
MCAPI void handleJsonRpcResult(::std::string const &id, ::Bedrock::Result<::Json::Value, ::JsonRpc::JsonRpcError > &&result)
MCAPI void _expirePendingResult(::std::string const &id)
MCAPI void dispatchJsonRpc(::std::string const &method, ::Json::Value const ¶ms)
MCAPI void * $ctor(::std::shared_ptr<::ISignalingJsonRpcInterop > signalingServiceInterop, ::std::vector<::std::shared_ptr<::IJsonRpcComponent > > components)
MCAPI JsonRpcProvider(::std::shared_ptr<::ISignalingJsonRpcInterop > signalingServiceInterop, ::std::vector<::std::shared_ptr<::IJsonRpcComponent > > components)
MCAPI void onMessage(::std::string_view incomingMessage)
MCAPI ::std::unique_ptr<::std::string, ::std::function< void(::std::string *)> > registerJsonRpcMethod(::std::string method, ::std::unique_ptr<::JsonRpc::IResultHandler > handler)
Definition JsonRpcProvider.h:27
MCAPI ~JsonRpcPendingResult()