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

Provide client-side socket.io namespace configuraton ability #1020

Open
lkraav opened this issue Mar 2, 2016 · 0 comments
Open

Provide client-side socket.io namespace configuraton ability #1020

lkraav opened this issue Mar 2, 2016 · 0 comments

Comments

@lkraav
Copy link

lkraav commented Mar 2, 2016

Follow up from #172 (comment), an issue which is closed, so branching it out here to get a fresh perspective on it.

I would like to run a single centralized browser-sync instance, that handles multiple, project-specific, sync channels. On a central server based workflow, this avoids an engineer working on one project disturbing another engineer working on another project (problematic esp. with ghosting). It seems socket.io namespace feature already has everything we need baked in, which seems like bulk of the workload to the untrained eye. browser-sync client should simply be able to take advantage of this with something like:

<script>
var _bs = _bs || [];
_bs.push('namespace', 'meh.site.com-feature-x');
</script>

Server should detect this during handshake or whatnot and configure its socket: namespace option 1 for this particular connection. An incremental and simpler step forward for proof of concept could also be that server accepts a pre-configured hardcoded array of namespaces it is able to work with, instead of just a simple string value.

Thoughts on feasibility of the above? Is there some huge building block requirement that I'm missing?

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

1 participant