Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support swift language #47

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

bigearsenal
Copy link

Add instruction for implementing flutter app that uses Swift as iOS development language

Add instruction for implementing flutter app that uses Swift as iOS development language
@projectxr
Copy link

Thanks a ton man!
You can add option .mutableContainers to the serializer because it threw an error without that.
-- JSONSerialization.jsonObject(with: data!, options: .mutableContainers ) as? NSMutableDictionary

Second for parity with android code (it sends an array on ios) you can change Line 189 in SocketIO.m to [listener call:data[0]]; as a quick fix.

//pc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants