LeviLamina
Loading...
Searching...
No Matches
Bedrock::Http::PersistentWebSocket Class Referenceabstract
Inheritance diagram for Bedrock::Http::PersistentWebSocket:

Public Member Functions

PersistentWebSocket & operator= (PersistentWebSocket const &)
 PersistentWebSocket (PersistentWebSocket const &)
virtual bool shouldReconnect () const
virtual ::Bedrock::Threading::Async<::Bedrock::Http::UrlgetUrl ()=0
virtual ::Bedrock::Threading::Async<::Bedrock::Http::HeaderCollectiongetHeaders ()
virtual::Bedrock::Http::RetryPolicy getReconnectPolicy ()
virtual void onConnect ()
virtual void onDisconnect (bool, uint)
virtual void onClose (uint status)
MCAPI void _connectWithRetry (::std::string const &uri, ::Bedrock::Http::HeaderCollection const &headers, ::nonstd::expected<::Bedrock::Http::StatusCode, ::std::error_code >, ::Bedrock::Http::RetryPolicy &&retry)
MCAPI void _onCloseMaybeReconnect (uint status, bool shouldReconnect)
MCAPI void _onConnect (::nonstd::expected<::Bedrock::Http::StatusCode, ::std::error_code > result, ::Bedrock::Http::RetryPolicy &&retry)
MCAPI void _reconnect (::nonstd::expected<::Bedrock::Http::StatusCode, ::std::error_code > lastResult, ::Bedrock::Http::RetryPolicy &&retry)
MCAPI ::Bedrock::Threading::Async<::nonstd::expected<::Bedrock::Http::StatusCode, ::std::error_code > > connectWithRetry (::Bedrock::Http::RetryPolicy &&retry)
MCAPI void disconnect ()
MCNAPI_S void * $ctor ()
MCAPI void $dtor ()
MCAPI bool $shouldReconnect () const
MCAPI ::Bedrock::Threading::Async<::Bedrock::Http::HeaderCollection$getHeaders ()
MCAPI::Bedrock::Http::RetryPolicy $getReconnectPolicy ()
MCAPI void $onConnect ()
MCAPI void $onDisconnect (bool, uint)
MCAPI void $onClose (uint status)
virtual ::Bedrock::Threading::Async<::std::error_code > send (::std::string const &message) const
virtual void onMessage (::std::string_view)
virtual void onBinaryMessage (::gsl::span< uchar const >)
MCAPI::HC_WEBSOCKET_OBSERVER * _allocateSocket (::std::future< void > connectCompleted)
MCAPI ::Bedrock::Threading::Async<::nonstd::expected<::Bedrock::Http::StatusCode, ::std::error_code > > connect (::std::string const &uri, ::Bedrock::Http::HeaderCollection const &headers)
MCAPI ::Bedrock::Threading::Async<::std::error_code > $send (::std::string const &message) const
MCAPI void $onMessage (::std::string_view)
MCAPI void $onBinaryMessage (::gsl::span< uchar const >)

Static Public Member Functions

static MCAPI void ** $vftable ()
static MCAPI void _deallocateSocketAsync (::HC_WEBSOCKET_OBSERVER *handle)
static MCAPI void _onConnect (::XAsyncBlock *asyncConnect, ::std::weak_ptr<::Bedrock::Http::WebSocket > weakThis, ::Bedrock::Threading::AsyncPromise<::nonstd::expected<::Bedrock::Http::StatusCode, ::std::error_code > > onComplete, ::HC_WEBSOCKET_OBSERVER *connectHandle)
static MCAPI void _onSend (::XAsyncBlock *asyncSend, ::Bedrock::Threading::AsyncPromise<::std::error_code > onComplete)

Public Attributes

::ll::UntypedStorage< 8, 8 > mUnk5730d9
::ll::UntypedStorage< 8, 104 > mUnkd613a3
::ll::UntypedStorage< 8, 80 > mUnk59fcc6
::ll::UntypedStorage< 8, 8 > mUnk2d81af
::ll::UntypedStorage< 8, 8 > mUnk5cda29

Member Function Documentation

◆ onClose()

virtual void Bedrock::Http::PersistentWebSocket::onClose ( uint status)
virtual

Reimplemented from Bedrock::Http::WebSocket.

◆ _connectWithRetry()

MCAPI void Bedrock::Http::PersistentWebSocket::_connectWithRetry ( ::std::string const & uri,
::Bedrock::Http::HeaderCollection const & headers,
::nonstd::expected<::Bedrock::Http::StatusCode, ::std::error_code > ,
::Bedrock::Http::RetryPolicy && retry )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _onCloseMaybeReconnect()

MCAPI void Bedrock::Http::PersistentWebSocket::_onCloseMaybeReconnect ( uint status,
bool shouldReconnect )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _onConnect() [1/2]

MCAPI void Bedrock::Http::PersistentWebSocket::_onConnect ( ::nonstd::expected<::Bedrock::Http::StatusCode, ::std::error_code > result,
::Bedrock::Http::RetryPolicy && retry )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _reconnect()

MCAPI void Bedrock::Http::PersistentWebSocket::_reconnect ( ::nonstd::expected<::Bedrock::Http::StatusCode, ::std::error_code > lastResult,
::Bedrock::Http::RetryPolicy && retry )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ connectWithRetry()

MCAPI ::Bedrock::Threading::Async<::nonstd::expected<::Bedrock::Http::StatusCode, ::std::error_code > > Bedrock::Http::PersistentWebSocket::connectWithRetry ( ::Bedrock::Http::RetryPolicy && retry)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ disconnect()

MCAPI void Bedrock::Http::PersistentWebSocket::disconnect ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $dtor()

MCAPI void Bedrock::Http::PersistentWebSocket::$dtor ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $shouldReconnect()

MCAPI bool Bedrock::Http::PersistentWebSocket::$shouldReconnect ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getHeaders()

MCAPI ::Bedrock::Threading::Async<::Bedrock::Http::HeaderCollection > Bedrock::Http::PersistentWebSocket::$getHeaders ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getReconnectPolicy()

MCAPI::Bedrock::Http::RetryPolicy Bedrock::Http::PersistentWebSocket::$getReconnectPolicy ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onConnect()

MCAPI void Bedrock::Http::PersistentWebSocket::$onConnect ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onDisconnect()

MCAPI void Bedrock::Http::PersistentWebSocket::$onDisconnect ( bool ,
uint  )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onClose()

MCAPI void Bedrock::Http::PersistentWebSocket::$onClose ( uint status)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

MCAPI void ** Bedrock::Http::PersistentWebSocket::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _allocateSocket()

MCAPI::HC_WEBSOCKET_OBSERVER * Bedrock::Http::WebSocket::_allocateSocket ( ::std::future< void > connectCompleted)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ connect()

MCAPI ::Bedrock::Threading::Async<::nonstd::expected<::Bedrock::Http::StatusCode, ::std::error_code > > Bedrock::Http::WebSocket::connect ( ::std::string const & uri,
::Bedrock::Http::HeaderCollection const & headers )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _deallocateSocketAsync()

MCAPI void Bedrock::Http::WebSocket::_deallocateSocketAsync ( ::HC_WEBSOCKET_OBSERVER * handle)
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _onConnect() [2/2]

MCAPI void Bedrock::Http::WebSocket::_onConnect ( ::XAsyncBlock * asyncConnect,
::std::weak_ptr<::Bedrock::Http::WebSocket > weakThis,
::Bedrock::Threading::AsyncPromise<::nonstd::expected<::Bedrock::Http::StatusCode, ::std::error_code > > onComplete,
::HC_WEBSOCKET_OBSERVER * connectHandle )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _onSend()

MCAPI void Bedrock::Http::WebSocket::_onSend ( ::XAsyncBlock * asyncSend,
::Bedrock::Threading::AsyncPromise<::std::error_code > onComplete )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $send()

MCAPI ::Bedrock::Threading::Async<::std::error_code > Bedrock::Http::WebSocket::$send ( ::std::string const & message) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onMessage()

MCAPI void Bedrock::Http::WebSocket::$onMessage ( ::std::string_view )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onBinaryMessage()

MCAPI void Bedrock::Http::WebSocket::$onBinaryMessage ( ::gsl::span< uchar const > )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

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