Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it support to distrubuted #40

Closed
masa2146 opened this issue Sep 12, 2021 · 1 comment
Closed

Is it support to distrubuted #40

masa2146 opened this issue Sep 12, 2021 · 1 comment

Comments

@masa2146
Copy link

Hello, I want to create socket communication using with distributed system. I found this netty-socketio project bu it's not active in development. does this project support distrubuted structure or will it?

@trinopoty
Copy link
Collaborator

I think you're looking for socket.io implementation. Refer to this repo: https://github.com/socketio/socket.io-server-java/
And, to answer you question, yes it's possible to have distributed. But, since I cannot know your specific architecture, you will need to implement such logic. You can use the SocketIoMemoryAdapter class as a reference.
Instances of SocketIoSocket are not distributed, distribution is implemented on top of rooms.
Basically, you need to implement a class that extends SocketIoAdapter which will be called by the library when it needs to send some packets to rooms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants