Giter Club home page Giter Club logo

socketioserver's Introduction

SocketIO Server base Netty-socketio

cluster base on redis

env jdk8, gradle6.x

启动2个服务

image-app01.png image-app02.png

app1  im端口 9202
app2  im端口 9203
依赖redis 自行修改.

打开聊天窗口

link1: port_9092_user_159.html   连接上app1,用户为159
link2: port_9093_user_160.html   连接上app2, 用户为160

验证

用2个不同的浏览器打开2个网页,让sid不同  
或者 同一浏览器打开配置 config.setRandomSession(true)   

用户为159,160 链接在不同的服务
2个用户相互发送消息,用户能正常接收。

socketioserver's People

Contributors

slyang520 avatar

Stargazers

strugglingOrange 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.