oikomi / fishchatserver Goto Github PK
View Code? Open in Web Editor NEW请移步第二版 https://github.com/oikomi/FishChatServer2
请移步第二版 https://github.com/oikomi/FishChatServer2
不知道是否是我看的不仔细, 没发现服务角色之间断线重连的代码呢
hi, I just want to know what protocol you use to provide notification
do you use xmpp, mqtt or http with long polling or even websocket?
controllers/main_controller.go:27: c.TplNames undefined (type *MainController has no field or method TplNames)
controllers/monitor_controller.go:49: this.ServeJson undefined (type *MonitorController has no field or method ServeJson)
编译过程报这个错误不知道怎么解决,不知道能不能帮我看一下呢
项目使用了吗? 没看见
可能直接就是逻辑层了,但是如果连接层收到了消息是通过http告诉后面逻辑层,然后逻辑层知道该转发给谁,就在通过http告诉连接层?是不是这样不好
[root@localhost client_p2p]# ./client_p2p
req GatewayServer...
input my id :
I1019 07:33:56.442040 1793 gateway.go:89] client 127.0.0.1:44099 | come in
I1019 07:33:56.442239 1793 proto_proc.go:49] Resp | &{SELECT_MSG_SERVER_FOR_CLIENT [127.0.0.1:19000]}
I1019 07:33:56.442383 1793 proto_proc.go:57] client 127.0.0.1:44099 | close
这个怎样破??
服务组件地址不应该写死配置文件中,比较好的方案可通过自动发现机制,这样可以做到真正scalability
刚开始看代码,看到route/server.go第43行是否有误?
需要将Address:cfg.Redis.Port -> Address:cfg.Redis.Addr + cfg.Redis.Port
return &Router{
cfg: cfg,
msgServerClientMap: make(map[string]*libnet.Session),
sessionStore: storage.NewSessionStore(storage.NewRedisStore(&storage.RedisStoreOptions{
Network: "tcp",
Address: cfg.Redis.Addr + cfg.Redis.Port,
ConnectTimeout: time.Duration(cfg.Redis.ConnectTimeout) * time.Millisecond,
ReadTimeout: time.Duration(cfg.Redis.ReadTimeout) * time.Millisecond,
WriteTimeout: time.Duration(cfg.Redis.WriteTimeout) * time.Millisecond,
Database: 1,
KeyPrefix: base.COMM_PREFIX,
})),
topicServerMap: make(map[string]string),
}
如果 有websocket的支持就更好啦
有公开架设的服务器不?
go get github.com/garyburd/redigo是不是应该改为
go get github.com/garyburd/redigo/redis?
请问什么时候开放智能硬件网关管理代码??
@miaohonghit 你好,想跟你请教个问题:
顶一下 持续关注学习中~~~
另请问下你这个搭好了怎么测试?
不知道你说需要改进的有哪些地方,能不能更新一下,大家也好一起开发
没有MongoDB数据库文件吗?还有有一个详细搭建过程吗?
是否能大概说下源代码阅读的时候路线图
还继续开发吗?什么时候有开放服务器或者demo出来?
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.