Last post Jul 28, 2012 07:41 PM by Paul Batum
Jul 27, 2012 01:00 PM|Clay.Fowler|LINK
We've implemented WebSocket services in our asp.net project with Dot Net 4.5. Along the usual lines:
log.Debug("Accepting web socket connection");
log.Debug("Rejecting non web socket connection");
System.Web.HttpContext.Current.Response.StatusCode = 500;
We can successfully connect to this and have traffic in both directions with Chrome and IE on the desktop, with Chrome on Android devices, etc. with no problems. But when trying to hit it from any iOS device (iPod Touch, iPad, etc.), System.Web.HttpContext.Current.IsWebSocketRequest
is always false.
Therefore, it is currently not possible to service iOS clients with this component.
Is this a known bug?
Jul 28, 2012 07:41 PM|Paul Batum|LINK
It is not a bug. The problem is that Safari for iOS 5 or earlier does not implement the final version of the WebSocket protocol that was standardised as RFC 6455.
According to caniuse.com, this is resolved in Safari for iOS 6:
You could try installing a beta of iOS 6 onto one of your devices to confirm this.