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