Documentation for the Unity C# Library
Loading...
Searching...
No Matches
PixoVR.Apex.ApexWebsocket Class Reference

Public Member Functions

async Task CloseSocket ()
 
async Task< bool > Connect (Uri endpoint, int attemptTries=3)
 
bool IsConnected ()
 
bool RequestAuthorizationCode ()
 
void Update ()
 

Public Attributes

OnWebSocketClosed OnClosed = new OnWebSocketClosed()
 
OnWebSocketConnectFailed OnConnectFailed = new OnWebSocketConnectFailed()
 
OnWebSocketConnectSuccessful OnConnectSuccess = new OnWebSocketConnectSuccessful()
 
OnWebSocketReceive OnReceive = new OnWebSocketReceive()
 

Private Member Functions

 ~ApexWebsocket ()
 
void HandleOnMessageSent ()
 
void ProcessNextRequest ()
 
async void Receive ()
 
async void Send (byte[] message)
 
void SendString (string message)
 
void StartReceiving ()
 

Private Attributes

Queue< string > PendingReceiveResults = new Queue<string>()
 
Queue< ApexWebsocketRequestTypePendingWebsocketRequests = new Queue<ApexWebsocketRequestType>()
 
Uri ServerEndpoint
 
ClientWebSocket WebSocket
 

Detailed Description

Definition at line 16 of file ApexWebsocket.cs.

Constructor & Destructor Documentation

◆ ~ApexWebsocket()

PixoVR.Apex.ApexWebsocket.~ApexWebsocket ( )
inlineprivate

Definition at line 267 of file ApexWebsocket.cs.

Here is the call graph for this function:

Member Function Documentation

◆ CloseSocket()

async Task PixoVR.Apex.ApexWebsocket.CloseSocket ( )
inline

Definition at line 255 of file ApexWebsocket.cs.

Here is the caller graph for this function:

◆ Connect()

async Task< bool > PixoVR.Apex.ApexWebsocket.Connect ( Uri endpoint,
int attemptTries = 3 )
inline

Definition at line 44 of file ApexWebsocket.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleOnMessageSent()

void PixoVR.Apex.ApexWebsocket.HandleOnMessageSent ( )
inlineprivate

Definition at line 107 of file ApexWebsocket.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsConnected()

bool PixoVR.Apex.ApexWebsocket.IsConnected ( )
inline

Definition at line 28 of file ApexWebsocket.cs.

Here is the caller graph for this function:

◆ ProcessNextRequest()

void PixoVR.Apex.ApexWebsocket.ProcessNextRequest ( )
inlineprivate

Definition at line 126 of file ApexWebsocket.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Receive()

async void PixoVR.Apex.ApexWebsocket.Receive ( )
inlineprivate

Definition at line 199 of file ApexWebsocket.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RequestAuthorizationCode()

bool PixoVR.Apex.ApexWebsocket.RequestAuthorizationCode ( )
inline

Definition at line 113 of file ApexWebsocket.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Send()

async void PixoVR.Apex.ApexWebsocket.Send ( byte[] message)
inlineprivate

Definition at line 161 of file ApexWebsocket.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SendString()

void PixoVR.Apex.ApexWebsocket.SendString ( string message)
inlineprivate

Definition at line 154 of file ApexWebsocket.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ StartReceiving()

void PixoVR.Apex.ApexWebsocket.StartReceiving ( )
inlineprivate

Definition at line 149 of file ApexWebsocket.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Update()

void PixoVR.Apex.ApexWebsocket.Update ( )
inline

Definition at line 36 of file ApexWebsocket.cs.

Here is the caller graph for this function:

Member Data Documentation

◆ OnClosed

OnWebSocketClosed PixoVR.Apex.ApexWebsocket.OnClosed = new OnWebSocketClosed()

Definition at line 21 of file ApexWebsocket.cs.

◆ OnConnectFailed

OnWebSocketConnectFailed PixoVR.Apex.ApexWebsocket.OnConnectFailed = new OnWebSocketConnectFailed()

Definition at line 19 of file ApexWebsocket.cs.

◆ OnConnectSuccess

OnWebSocketConnectSuccessful PixoVR.Apex.ApexWebsocket.OnConnectSuccess = new OnWebSocketConnectSuccessful()

Definition at line 18 of file ApexWebsocket.cs.

◆ OnReceive

OnWebSocketReceive PixoVR.Apex.ApexWebsocket.OnReceive = new OnWebSocketReceive()

Definition at line 20 of file ApexWebsocket.cs.

◆ PendingReceiveResults

Queue<string> PixoVR.Apex.ApexWebsocket.PendingReceiveResults = new Queue<string>()
private

Definition at line 26 of file ApexWebsocket.cs.

◆ PendingWebsocketRequests

Queue<ApexWebsocketRequestType> PixoVR.Apex.ApexWebsocket.PendingWebsocketRequests = new Queue<ApexWebsocketRequestType>()
private

Definition at line 25 of file ApexWebsocket.cs.

◆ ServerEndpoint

Uri PixoVR.Apex.ApexWebsocket.ServerEndpoint
private

Definition at line 24 of file ApexWebsocket.cs.

◆ WebSocket

ClientWebSocket PixoVR.Apex.ApexWebsocket.WebSocket
private

Definition at line 23 of file ApexWebsocket.cs.


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