moozzyk / SignalR-Client-Swift

Swift SignalR Client for Asp.Net Core SignalR server
MIT License
356 stars 136 forks source link

No way to get ReceieveScanSummary data in json formate.. #282

Closed appankit closed 1 year ago

appankit commented 1 year ago

Hi,

I want to get ReceieveScanSummary data...But i am unable to parse the data into my custom model class. Could you please help me to parse data which are received from 'ReceieveScanSummary' event....

code... self.chatHubConnection!.on(method: "ReceieveScanSummary") { (payload: ArgumentExtractor?) in // How to parse data? }

moozzyk commented 1 year ago

You need to create a struct. This is explained in more detail in my Swift SignalR Client course in sections "Structural Types Handling" and "The most common mistakes"