I just played around a little with the library. My use case is just about sending (large amounts of) data to the client. So I never called ReadMessageAsync at all.
After getting mysterious connection drops and debugging through it all I finally found the reason: pong messages are not processed at all unless I call ReadMessageAsync. To me, this is quite surprising. I feel the documentation should emphasize strongly that calling ReadMessageAsync is absolutely mandatory when pinging is not disabled, even if no messages are expected.
I just played around a little with the library. My use case is just about sending (large amounts of) data to the client. So I never called
ReadMessageAsync
at all.After getting mysterious connection drops and debugging through it all I finally found the reason: pong messages are not processed at all unless I call
ReadMessageAsync
. To me, this is quite surprising. I feel the documentation should emphasize strongly that callingReadMessageAsync
is absolutely mandatory when pinging is not disabled, even if no messages are expected.