When calling client methods from the Hub SignalR documentation says to "Define methods the hub calls using connection.on after building, but before starting the connection":

enter image description here

In another section the documentation just says this is a best practice.

SO if I'm adding/removing a lot of methods for a given client/hub pair, can I just start the hub, add/remove a method with connection.On(), and call .start() again to ensure it's registered? OR do I have to close() and then call start()?

1

There are 1 answers

0
Jason On BEST ANSWER

Methods can be removed/added after starting without requiring a restart.