Is blocking of new sessions possible in NetTalk?

Hello Everyone,

I just want to ask if blocking of new sessions in NetTalk is possible?

What I want to achieve is like a switch where if the switch is on, then all incoming sessions to the WebServer will be blocked, but will still be able to serve all active sessions until it dies. If this is possible, how?


1 Like


In web handler,in newsession method, add code to call sendError, and then end the Handler.


It worked. Thanks!