Realtime.co: A cloud based realtime p2p wrapper

Monkey Programming Forums/User Modules/Realtime.co: A cloud based realtime p2p wrapper

Xaron(Posted 2015) [#1]
Dear all,

I've started to work on a wrapper for the Realtime.co networking solution.
http://www.realtime.co (not .com!)

Basically it's something like Pubnub, Photon, Pusher. It's a cloud based online service, where client to client messages can be send without the need of a server.

Why I've chosen Realtime.co is simple. It has a vast of supported platforms (which I plan to integrate some of them, especially HTML5, Desktop, Android, iOS and Windows Phone 8) and their pricing is more than fair: http://framework.realtime.co/messaging/#pricing
The free account allows up to 1,000 concurrent connections and 5 million messages per month which should be enough to start with.

Here's a small working chat example:

http://www.leidel.net/dl/temp/rt/MonkeyGame.html

And here's the GitHub Repo: https://github.com/KrautApps/Realtime

Working targets: HTML5, Android

Coming next are more targets.

A small guide

1) Copy the folder "modules_ext" to your Monkey installation.
2) Add your application key to the example.monkey file.

That's it!


Difference(Posted 2015) [#2]
Great news! Looking forward to seeing this progress.

I tested you example from 2 different browsers on the same computer and it works :-)


Xaron(Posted 2015) [#3]
Glad you like it!

I enhanced the lib with announcement channels plus connect/disconnect and adapted the example accordingly.

Announcement channels are explained here:
http://messaging-public.realtime.co/documentation/starting-guide/announcement-channels.html

Basically you get notified when a new client connects or disconnects and when he subscribes or unsubscribes a channel. It's nothing you have to worry about as I've added it more or less internally. Git and example link above are up to date.


rIKmAN(Posted 2015) [#4]
Good stuff Xaron, will keep an eye on this.


Xaron(Posted 2015) [#5]
Hi there,

I've added the Android target. :) If you don't want to compile, here's a working example (looks ugly and is the same as the html5 example but works):
http://www.leidel.net/dl/temp/rt/realtime.apk


Difference(Posted 2015) [#6]
Excellent


Xaron(Posted 2015) [#7]
Next will be iOS, but this might take a while as I have not that much time for it atm.

Any volunteers for iOS? Especially as Obj C is NOT my most beloved language out there...

Windows Phone will be tricky. It's very easy to integrate but completely C# so we need a C++ bridge to communicate with Monkey.


Nobuyuki(Posted 2016) [#8]
heya,

any news on the updates of these targets? Are you still leveraging realtime.co primarily for your projects? Will there be a desktop version available anytime? (would it be hard to add in?) :)

Thanks


Xaron(Posted 2016) [#9]
I haven't got further yet, so sorry. But if anyone wants to help, feel free! It should be somehow straight forward to do. A desktop version should be doable as well.


Xaron(Posted 2016) [#10]
BTW: As I need this for my current project I will continue with new targets pretty soon...


Difference(Posted 2016) [#11]
Still following this with interest.