Skip to content

Commit

Permalink
A simple refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
darkl committed May 17, 2018
1 parent 08623f2 commit 19939af
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected IControlledWampConnection<TMessage> CreateTextConnection<TMessage>(IWa
return new WebSocket4NetTextConnection<TMessage>(ActivateWebSocket(textBinding), textBinding);
}

private WebSocket ActivateWebSocket<TMessage>(IWampBinaryBinding<TMessage> binaryBinding)
private WebSocket ActivateWebSocket(IWampBinding binaryBinding)
{
WebSocket webSocket = mWebSocketFactory(binaryBinding.Name);

Expand All @@ -80,17 +80,5 @@ private WebSocket ActivateWebSocket<TMessage>(IWampBinaryBinding<TMessage> binar

return webSocket;
}

private WebSocket ActivateWebSocket<TMessage>(IWampTextBinding<TMessage> textBinding)
{
WebSocket webSocket = mWebSocketFactory(textBinding.Name);

if (SecurityOptionsConfigureAction != null)
{
SecurityOptionsConfigureAction(webSocket.Security);
}

return webSocket;
}
}
}

0 comments on commit 19939af

Please sign in to comment.