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

Make the library work well with RN 0.29+ on Android and add support for multiple event handlers and multiple sockets #46

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

Conversation

saalihou
Copy link

@saalihou saalihou commented Jun 13, 2018

Fixed incompatible methods
Fixed dex multiple defines error due to old socketio java client version
Added support for multiple event handlers on the same event
Added support for path option in Android
Added support for multiple sockets on Android

I unfortunately do not have enough iOS/Swift knowledge to make checks on the iOS side (+ I do not own a MAC :D). If anyone is willing to look into it, otherwise I will have a colleague help me out on it soon.

ReadableNativeMap constructor is now protected. We have to override
it with our own constructor if we want it to be usable in our package.
ReactPackage no longer includes a createJSModules function
Instead of emitting events with all the parameters packed into a
single array, we spread them over multiple arguments. This is
consistent with the way the javascript socketio client behaves
when receiving events.
Socket.io-client v0.0.7 uses the OkHttp3 ws module which is deprecated
by OkHttp3 since 3.5.0 because ws is now part of OkHttp3. On later
versions of react native which include OkHttp3 > 3.5 this causes a
multiple dex define error at build time
This JS socketio Socket class has a close method.
@saalihou saalihou changed the title Make the library work well with RN 0.29+ on Android and add support for multiple event handlers Make the library work well with RN 0.29+ on Android and add support for multiple event handlers and multiple sockets Jun 14, 2018
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.

None yet

2 participants