5#include "CoreMinimal.h"
45 void SetupSocket(TSharedPtr<IWebSocket>& Socket, FString Uri, FString Protocol);
MultiplayerWebSocketRequestType
DECLARE_EVENT(MultiplayerWebSocket, FSocketConnected)
DECLARE_EVENT_OneParam(MultiplayerWebSocket, FSocketMessageReceived, const FString &)
DECLARE_EVENT_OneParam(MultiplayerWebSocket, FSocketConnectFailed, const FString &)
MultiplayerRequestData LastWebSocketRequest
FSocketMessageReceived & OnWebSocketMessageReceived()
void SendData(FString Data)
bool bShouldRestartOnBadClose
FSocketDisconnected SocketDisconnectedEvent
DECLARE_EVENT_ThreeParams(MultiplayerWebSocket, FSocketDisconnected, int32 StatusCode, const FString &Reason, bool bWasClean)
FSocketDisconnected & OnWebSocketDisconnected()
bool bShouldReplayLastRequestOnBadClose
TSharedPtr< IWebSocket > WebSocket
FSocketConnected SocketConnectedEvent
FSocketConnectFailed SocketConnectFailedEvent
void SetupSocket(TSharedPtr< IWebSocket > &Socket, FString Uri, FString Protocol)
TArray< MultiplayerRequestData > PendingWebsocketRequests
FSocketMessageReceived SocketMessageReceivedEvent
FSocketConnected & OnWebSocketConnected()
void ProcessNextRequest()
void RequestMatchMake(int OrgId, int ModuleId)
bool IsWebsocketConnected()
FSocketConnectFailed & OnWebSocketConnectFailed()
bool AttemptConnect(FString Uri, FString Protocol="wss")