Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

Commented Feature: Add cancellation support to websocket APIs (especially receive task) [177]

$
0
0
Currently, websocket APIs do not take cancellation token.
Initiating a receive returns a task that completes when a message is received. If user wishes to cancel this operation, it is not possible right now, unless they close the websocket client : in which case the receive will throw an exception.
Comments: Hi raffaeler, I think the best belongs in its own issue/discussion separate from adding cancellation support to websockets. I've created a [new issue](https://casablanca.codeplex.com/workitem/236) can we continue the conversation over there? Thanks. It would help if you could provide or show the websocket code you have. Thanks, Steve

Viewing all articles
Browse latest Browse all 4845


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>