Code Monkey home page Code Monkey logo

fishchatserver's Issues

just want to know protocol you use

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?

编译错误

github.com/oikomi/FishChatServer/monitor/controllers

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)
编译过程报这个错误不知道怎么解决,不知道能不能帮我看一下呢

client_p2p测试出错,如何解决?

[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

redis的连接地方是否有错误?

刚开始看代码,看到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),
}

顶楼主

@miaohonghit 你好,想跟你请教个问题:

顶一下 持续关注学习中~~~

另请问下你这个搭好了怎么测试?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.