GithubHelp home page GithubHelp logo

timgo's Introduction

timgo是tim即时聊天的golang客户端
连接服务器与发送信息等操作都比较简单

  1. 新建Conf对象,并主要几个属性赋值,包括用户名(Name),密码(Pwd),域名(Domain),资源(Resource)
    同时服务器掉用客户端方法是,需要实现几个回调的方法
    AckListener
    MessageListener 实现客户端处理服务器推送的信息
    PresenceListener 实现客户端处理服务器推送的好友状态信息
    MessageListListener 实现客户端处理服务器推送的信息,对象为信息集合
    PresenceListListener 实现客户端处理服务器推送的好友状态信息,对象为信息集合
  2. 连接服务器client.NewConn,需要提供ip与端口

具体操作请参考 timgo.go ,有任何问题请随时email到[email protected] 谢谢!

timgo's People

Contributors

donnie4w avatar

Watchers

 avatar

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.