有一个socket.io端口到Dart? [英] Is there a socket.io port to Dart?

查看:132
本文介绍了有一个socket.io端口到Dart?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看过Dart的基本websocket功能,使用这个简单的例子:
https: //github.com/financeCoding/chat-websocket-dart

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

但我想知道是否有一个漂亮的图书馆,我可以用来建立一个实时在线游戏使用websockets。我有过这方面的经验,使用node.js与socket.io,工作得很好。我需要能够有房间,加入房间,离开房间,广播到客户在房间等,以及一些不错的连接健康的概念,重新连接等。所以我要问的是,如果有一个很好的dart图书馆有类似的功能?更酷的是图书馆顶部的库,可以通过变量同步等实现出色的RPC功能,例如 http://nowjs.com/使用socket.io实现这一点。

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 :)

推荐答案

Duct是Socket.IO在Dart中的克隆版本,旨在与原始实现协议级兼容。

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

https://github.com/petrhosek/duct

这篇关于有一个socket.io端口到Dart?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆