withHubProtocol method
Configures the HubConnection to use the specified Hub Protocol.
protocol: The IHubProtocol implementation to use.
Implementation
HubConnectionBuilder withHubProtocol(IHubProtocol protocol) {
_protocol = protocol;
return this;
}