You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to have a bunch of OSC messages saved on the node server using the Bridge Plugin, so they could be sent to the browser client when they connect to the server. But I can't seem to find an event listener that listens to a new connection on the server and sending a message only to the new client.
Right now I'm using a workaround, which the client sends a message to the server on connection, which then in turn responds with the saved OSC messages. Though this would broadcast the message to other connected clients as well and might cause issues.
const savedMessage = 123
osc.on(/'connected', () => {
const oscMsg = new OSC.Message('/example', savedMessage)
osc.send(oscMsg) // This broadcasts the osc message to all connected clients instead of only the new client
})
Any ideas on how to only respond to a new client?
The text was updated successfully, but these errors were encountered:
Hi! Thanks for creating this awesome library!
I am trying to have a bunch of OSC messages saved on the node server using the Bridge Plugin, so they could be sent to the browser client when they connect to the server. But I can't seem to find an event listener that listens to a new connection on the server and sending a message only to the new client.
Right now I'm using a workaround, which the client sends a message to the server on connection, which then in turn responds with the saved OSC messages. Though this would broadcast the message to other connected clients as well and might cause issues.
Client
Server
Any ideas on how to only respond to a new client?
The text was updated successfully, but these errors were encountered: