Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a socket.io port to Dart?

I've taken a look at the basic websocket capabilities in Dart, using this simple example: https://github.com/financeCoding/chat-websocket-dart

But I was wondering if there's a nice library I could use to build a realtime online game using websockets. I've had experience in this using node.js with socket.io, which worked out quite well. I need to be able to have "rooms", join rooms, leave rooms, broadcast to clients in a room, etc. as well as some nice notion of connection "health", reconnection etc. So what I'm asking is if there's a nice library for dart that has similar functionality? Even cooler would be a library on top of that library that could enable nice RPC functionality with variable syncing etc. such as http://nowjs.com/ which achieves this using socket.io. But I guess that might be too ambitious.

If anyone's had any experience or found a project which is similar to what I'm talking about, let me know :)

like image 235
meltuhamy Avatar asked Oct 14 '12 12:10

meltuhamy


2 Answers

Duct is clone of Socket.IO in Dart which aims to be protocol-level compatible with the original implementation.

https://github.com/petrhosek/duct

like image 156
Derek Slife Avatar answered Dec 28 '22 23:12

Derek Slife


Sorry, at the time of this writing, I'm not aware of a socket.io port for Dart. socket.io is nice because it has a bunch of implementation options for browsers that don't support Web sockets.

Sounds like a good idea for a hackathon project!

like image 35
Seth Ladd Avatar answered Dec 28 '22 22:12

Seth Ladd