munshkr / browserglue Goto Github PK
View Code? Open in Web Editor NEWExposes multiple OSC connections to the browser through WebSockets
License: GNU Affero General Public License v3.0
Exposes multiple OSC connections to the browser through WebSockets
License: GNU Affero General Public License v3.0
Warn only once when it disconnects (mention that it will keep retrying until told to stop).
This forces the client to have a single handler for each event type, useful for live coding environments that usually re-evaluate message handling routines.
Proposal: make .on
replace the handler automatically, and define a .addEventListener
for having multiple handlers for the same event.
This implies recreating the socket.
There should be a module that allows you to synchronize the server status (list of channels) between peers. It should be transport agnostic, so it could accept callbacks for updating local state from a remote channel (onUpdate
), and for updating the state on remote peers (broadcast
).
bg.on(‘add-channel’, path => bg.addChannel(path));
bg.on(‘remove-channel’, path => bg.removeChannel(path));
The client interface should expose some simpler methods for the most common use cases.
This implies recreating the socket.
Right now a channel is created by specifying a path, which is then used in the WebSockets server. But it's kinda confusing that there are two paths: the channel path and the OSC message path.
Maybe we can allow any name instead, and slugify the name and use that as path. For example:
client.addChannel("This is my Channel")
// it will use /data/this-is-my-channel
Right now it only receives messages from an OSC address named as the channel. The name of the channel should be an arbitrary name.
Maybe I should use some logger with verbosity levels, so it's quiet by default.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.