SignalR - OnConnect() authorization - how to disconnect unauthorized user? -


in hub, have (pseudocode):

public override task onconnected() {     var islegal = authorize();     if (!islegal) //not authorized     {         //how deny him connection?     }     return base.onconnected(); } 

how disconnect/deny connection user?

add authorize attribute on class,the user denied, if not authenticated.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -