Achieve unique session based on Client id #77
              
                
                  
                  
                    Answered
                  
                  by
                    fafhrd91
                  
              
          
                  
                    
                      StanLi-ops
                    
                  
                
                  asked this question in
                Q&A
              
            -
| 
         Hello, I hope to achieve the following scenarios: I think it should be handled in the function handshake(). But I don't know how to close the original session in the function handshake().  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            fafhrd91
          
      
      
        Dec 10, 2021 
      
    
    Replies: 1 comment
-
| 
         you need registry of available sessions. then you just take session for client and disconnect it  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        StanLi-ops
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
you need registry of available sessions. then you just take session for client and disconnect it