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

Configurable Multi Channel Chat Support #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rmattam
Copy link

@rmattam rmattam commented Jan 16, 2018

An attempt to write idiomatic go code and better encapsulate subscription and client handling into a dedicated package.

The Idea is to spawn multiple chat channels just by configuring channel name and websocket path in the routes.go file. The idea is to loop through a websocket config collection and using closure to initialize distinct instances for each configured channel, listening to redis messages on the subscribed channels.

This demo helped me a lot to set up chat server on heroku,
I had to extend to support multiple channels to make it work for my use case.

Hope my contribution helps some one who faced the same problem as me.

you can check this medium article for more info : https://medium.com/@rahulroymattam/a-scalable-multi-channel-golang-messaging-server-on-heroku-edf7b236b7ff

@rmattam rmattam reopened this Jan 16, 2018
@freeformz
Copy link
Contributor

I know this is super old, but if you want to rebase and resolve conflicts I'd be happy to review.

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

Successfully merging this pull request may close these issues.

2 participants