withHubProtocol method

HubConnectionBuilder withHubProtocol (IHubProtocol protocol)

Configures the HubConnection to use the specified Hub Protocol.

protocol: The IHubProtocol implementation to use.

Implementation

HubConnectionBuilder withHubProtocol(IHubProtocol protocol) {
  assert(protocol != null);

  _protocol = protocol;
  return this;
}