File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
src/net45/Default/WampSharp.WebSocket4Net/WAMP2/V2/Fluent Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -61,14 +61,26 @@ private IControlledWampConnection<TMessage> GetConnectionFactory<TMessage>(IWamp
6161
6262 protected IControlledWampConnection < TMessage > CreateBinaryConnection < TMessage > ( IWampBinaryBinding < TMessage > binaryBinding )
6363 {
64- return new WebSocket4NetBinaryConnection < TMessage > ( mWebSocketFactory ( binaryBinding . Name ) , binaryBinding ) ;
64+ return new WebSocket4NetBinaryConnection < TMessage > ( ActivateWebSocket ( binaryBinding ) , binaryBinding ) ;
6565 }
6666
6767 protected IControlledWampConnection < TMessage > CreateTextConnection < TMessage > ( IWampTextBinding < TMessage > textBinding )
6868 {
6969 return new WebSocket4NetTextConnection < TMessage > ( ActivateWebSocket ( textBinding ) , textBinding ) ;
7070 }
7171
72+ private WebSocket ActivateWebSocket < TMessage > ( IWampBinaryBinding < TMessage > binaryBinding )
73+ {
74+ WebSocket webSocket = mWebSocketFactory ( binaryBinding . Name ) ;
75+
76+ if ( SecurityOptionsConfigureAction != null )
77+ {
78+ SecurityOptionsConfigureAction ( webSocket . Security ) ;
79+ }
80+
81+ return webSocket ;
82+ }
83+
7284 private WebSocket ActivateWebSocket < TMessage > ( IWampTextBinding < TMessage > textBinding )
7385 {
7486 WebSocket webSocket = mWebSocketFactory ( textBinding . Name ) ;
You can’t perform that action at this time.
0 commit comments