disconnect client from server side signalr

后端 未结 6 1321
梦如初夏
梦如初夏 2021-02-19 06:39

I\'m using SignalR 1 with MVC4 C# web application with form authentication. I have a code in my layout page in JavaScript :

$(documnet).ready(function(){
               


        
6条回答
  •  再見小時候
    2021-02-19 07:17

    Copy and paste the following function into your Hub

    Use HttpContext.Current.Response.End();
    

    to force the client to disconnect in your hub

提交回复
热议问题