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
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