-
Notifications
You must be signed in to change notification settings - Fork 146
Frequently Asked Questions
If you need to create hub proxies then it means that you are using the previous (non-ASP.NET Core) version of SignalR. The current (ASP.NET Core) and the previous (non-ASP.NET Core) versions of SignalR are not compatible and this client only support the ASP.NET Core version of SignalR. You need to find a client that supports the previous (non ASP.NET Core) version of SignalR.
Detailed user's guides can be found here:
- Swift Client for the ASP.Net Core Version of SignalR – Part 1: Getting Started
- Swift Client for the ASP.Net Core Version of SignalR – Part 1: Beyond the Basics
Make sure that you keep a reference to the HubConnection instance you created. If you don't the instance will be destroyed when it goes out of scope which closes the connection.
Ideally you should create an object that correspond to your JSON structure and the client will create an instance of this object based on the data received from the server. Alternatively, you can send JSON string from the server and receive it as a string on the client and handle deserialization yourself.
You may need to add libz.tbd to the libraries your project is linked with (under Build Phases, Linked Frameworks and Libraries) if you see undefined symbol errors similar to ones reported in https://github.com/moozzyk/SignalR-Client-Swift/issues/42.