Skip to content

Socket长连接、通信、心跳包、消息回调、Java服务端

Notifications You must be signed in to change notification settings

yixi195/SockeIO-Demo

Repository files navigation

SockeIO-Demo

Socket长链接简单封装demo /**

  • 1.定时与服务器心跳保持(时间可以自定义)
  • 2.断线自动重连
  • 3.连接成功、断开连接、收到消息回调处理
  • 4.消息发送状态获取(成功true or 失败false)
  • 5.注册广播 */

客户端: image

服务端: image

代码比较简单,主要是介绍一些Socket的用法。

注意:修改HOST,PORT

谢谢

QQ:195779438

邮箱:195779438@qq.com

About

Socket长连接、通信、心跳包、消息回调、Java服务端

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages