This library allows to generate Centrifugo client libraries for iOS and Android using gomobile tool. Also it can be used directly from Go applications.
Gomobile is cool but experimental project so you may better use our native libraries for iOS and Android. But as they are supported by Centrifugo community members they lack some features (your contributions are really appreciated). This repo contains full-featured Centrifugo client for all platforms.
See examples to dive into. In that folder you can find how to use this library from Go, also example iOS app and Android app using generated client bindings.
See how to import generated library on iOS and on Android in introduction post - in two words you need to import centrifuge.aar
(Android) or Centrifuge.framework
(iOS) which is on top level of this repo to your studio.
Mobile and Go versions have some differences to be a bit more performant when using library directly from Go. So to build bindings for mobile platforms we are ensuring in mobile
build tag this way:
gomobile bind -target=ios -tags="mobile" github.com/centrifugal/centrifuge-mobile
gomobile bind -target=android -tags="mobile" github.com/centrifugal/centrifuge-mobile