terry-ye / im Goto Github PK
View Code? Open in Web Editor NEW纯go实现的分布式im即时通讯系统,各层可单独部署,之间通过rpc通讯
纯go实现的分布式im即时通讯系统,各层可单独部署,之间通过rpc通讯
$ go get ./...
build tim/comet: cannot load im/libs/define: cannot find module providing package im/libs/define
非常感谢前面的解答,我在本地运行基本没有问题,但前端还有一些问题,实在不好意思,我把https://www.texixi.com 替换localhost , 发现前端界面还是有问题,能麻烦把demo里面对三个html文件修改下,让我参照对比下吗,谢谢
我发现 使用post 向聊天服务器发消息。个人觉得,客户端已经开了websocket了,完全可以直接使用websocket 进行通信。
http 用来做 登录、注册就好了。
redis 发布/订阅,是同一条消息被多个订阅者共同消费,多台服务器拓展时重复处理同一条消息,
应该是使用队列 拓展才有意义
comet(用户连接层)可以有多个节点,用户连服务器是一个域名对应一个ip,如何让用户能够随机连到不同的节点呢?
./logic
INFO[0000] RPCAddrs :tcp@localhost:6924
2019/10/10 14:54:17 Connected to 127.0.0.1:2181
INFO[0000] start http listen:"[email protected]:6921"
2019/10/10 14:54:17 authenticated: id=72063386894270471, timeout=10000
2019/10/10 14:54:17 re-submitting `0` credentials after reconnect
2019/10/10 14:54:17 service.go:140: ERROR: rpcx.Register: no service name for type *main.LogicRpc
2019/10/10 14:54:17 server.go:174: INFO : server pid:14852
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.