[]
Delegate for creation of WebSocket instances.
public delegate Task<WebSocket> WebSocketFactory(Uri url)
url UriA browser WebSocket endpoint to connect to.
A Task<TResult> instance for the asynchronous socket create and connect operation.
public WebSocketFactory(object @object, IntPtr method)
public virtual IAsyncResult BeginInvoke(Uri url, AsyncCallback callback, object @object)
url Uricallback AsyncCallbackobject objectpublic virtual Task<WebSocket> EndInvoke(IAsyncResult result)
result IAsyncResultpublic virtual Task<WebSocket> Invoke(Uri url)
url Uri