Event listeners are not triggered when added after a connection was opened.
I'm not sure if this is intended behaviour but I don't think it's documented anywhere, and it's also confusing why it doesn't work.
remoteCall is invoked, and sends two events (test1, test2) before returning the data. The client never handles test2 (which was added after the connection started).
In case this may be relevant, The SignalR transport mode is "serverSentEvents". I have not tested "websockets" or any other transport mode.
Description
Event listeners are not triggered when added after a connection was opened.
I'm not sure if this is intended behaviour but I don't think it's documented anywhere, and it's also confusing why it doesn't work.
Reproduction
Output:
remoteCall is invoked, and sends two events (test1, test2) before returning the data. The client never handles test2 (which was added after the connection started).
In case this may be relevant, The SignalR transport mode is "serverSentEvents". I have not tested "websockets" or any other transport mode.