First arbitrary messages in signalR has no messageID?

后端 未结 1 1756
臣服心动
臣服心动 2021-01-23 21:23

I wrote this simple code which --when connected , should yield

  • "FIRST !"
  • "Welcome"
  • 3 messages ( timer)

This is

相关标签:
1条回答
  • 2021-01-23 21:54

    In SignalR 1.1, connection.messageId is set after all of the connection.received handlers have been called for a batch of messages.

    Message IDs are really only meant to be used by SignalR internally, but in SignalR 2.0 connection.messageId will be set before the connection.received handlers are called.

    0 讨论(0)
提交回复
热议问题