SignalR/SignalR — pull request #1160 by NTaylorMullen (2012-12-19 00:30:52+00:00)
Title: #1143 - Changed server's ping endpoint to return json or jsonp depending on request

For browsers that did not support cors the JS client pingServer would fail when trying to request text from the server. Therefore in order to maintain consistency amongst other requests/responses I changed the server's ping endpoint to return json/jsonp.

I also added two tests to verify the pingServer functionality but due to Chutzpah's limitations with Cross domain (cross domain requests are not treated as cross domain) I was not able to accurately replicate a Cross domain scenario to test against. This would be a great addition to the JS test framework later on to run all tests twice (one non-cross domain) one with.