HubConnectionBuilder Class

  • java.lang.Object
    • com.microsoft.signalr.HubConnectionBuilder

public abstract class HubConnectionBuilder

A builder for configuring HubConnection instances.

Constructor Summary

Constructor Description
HubConnectionBuilder()

Method Summary

Modifier and Type Method and Description
abstract HubConnection build()

Builds a new instance of HubConnection.

static HttpHubConnectionBuilder create(String url)

Creates a new instance of HttpHubConnectionBuilder.

Inherited Members

java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructor Details

HubConnectionBuilder

public HubConnectionBuilder()

Method Details

build

public abstract HubConnection build()

Builds a new instance of HubConnection.

Returns:

A new instance of HubConnection.

create

public static HttpHubConnectionBuilder create(String url)

Creates a new instance of HttpHubConnectionBuilder.

Parameters:

url - The URL of the SignalR hub to connect to.

Returns:

An instance of HttpHubConnectionBuilder.

Applies to