WebSocketWrapper
class AnchorLinkSharp::WebSocketWrapper
: public MonoBehaviourSummary
public WebSocketState State
public async Task Create(string uri)
Creates a new instance.
public async Task ConnectAsync()
public async Task CloseAsync()
public void Clear()
private string _uri
private bool _newRequest
private void Update()
private void WebSocketOnOnError(string errormsg)
private void WebSocketOnOpen()
private void WebSocketOnOnClose(WebSocketCloseCode closeCode)
private void WebSocketOnMessageReceived(byte[] data)
private async void OnDisable()
private async void OnApplicationQuit()
Members
public WebSocketState State
public async Task Create(string uri)
Creates a new instance.
Parameters
uriThe URI of the WebSocket server.
Returns
public async Task ConnectAsync()
public async Task CloseAsync()
public void Clear()
private string _uri
private bool _newRequest
private void Update()
private void WebSocketOnOnError(string errormsg)
private void WebSocketOnOpen()
private void WebSocketOnOnClose(WebSocketCloseCode closeCode)
private void WebSocketOnMessageReceived(byte[] data)
private async void OnDisable()
private async void OnApplicationQuit()
Last updated