aspnet/SignalR-Client-Cpp — pull request #21 by moozzyk (2014-11-05 17:48:07+00:00)
Title: SignalrNativeClientAndTheTemplateOfDoom - untemplating websocket_transport

casablanca websocket_client returns websocket_incoming_message. However because there is no way to set the websocket_incoming_message response contents externally testing scenarios where messages were received was not possible. To make the code testable we would have to change the template type to something that returns pplx::task instead of pplx::task which meant we could not use the casablanca websocket_client directly as the template type which was the main point of using the template in the first place. As a result the static polymorphism (i.e. template) is being replaced with runtime polymorphism (base pure virtual class).