Skip to content

Swift client for SignalR (iOS and Mac)

License

Notifications You must be signed in to change notification settings

DhavalRKansara/SwiftR

 
 

Repository files navigation

SwiftR

Join the chat at https://gitter.im/adamhartford/SwiftR

A Swift client for SignalR. Supports hubs and persistent connections.

Demo

I have published a sample SignalR server at http://swiftr.azurewebsites.net. The iOS demo application now uses this server. See SwiftRChat for the souce code. It's based on this, with some minor changes:

http://www.asp.net/signalr/overview/deployment/using-signalr-with-azure-web-sites

How does it work?

It's a wrapper around the SignalR JavaScript client running in a hidden web view. As such, it's subject to the same limitations of that client -- namely, no support for custom headers when using WebSockets. This is because the browser's WebSocket client does not support custom headers.

WKWebView?

Either, your choice. Note that since WKWebView runs in a separate process, it does not have access to cookies in NSHTTPCookieStorage.

About

Swift client for SignalR (iOS and Mac)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 90.5%
  • JavaScript 5.8%
  • Objective-C 2.3%
  • Ruby 1.4%