automata / osc-web Goto Github PK
View Code? Open in Web Editor NEWOpen Sound Control Web Bridge
License: MIT License
Open Sound Control Web Bridge
License: MIT License
Using bridge.js to send OSC to a web page, as in the example, works great until the page is reloaded. After reload, the page will not receive messages until the server is restarted. I'm guessing that the original connection does not release the port, so the second oscServer can't bind to it.
Chrome 37.0.2062.124
OSX 10.9.5
Node.js 0.10.24
Hi there,
sometimes I got :
throw new ERR_SOCKET_DGRAM_NOT_RUNNING();
My fix was to change to :
socket.on("disconnect", function () {
if (oscServer) {
oscServer.kill();
oscServer = null;
}
I've tested this on my localhost server and it works fine. I'm trying to set it up on a remote nginx server and I'm having trouble getting it working. Do you have any tips on getting this working on that kind of configuration? I understand that it is more involved getting socket.io to work with nginx.
all sorted just a simple osx networking issue
Without a license, the code is "all rights reserved" by default...
I an using osc-web for some time (thank you for your work). Since my last update (linux and node) it does not start anymore. This hasn't changed with the modifications ftom Dec. 7th.
When trying to start it by "node bridge.js' node stops and displays these messages.
.../osc-web/node_modules/socket.io/lib/store.js:35
Store.prototype.proto = EventEmitter.prototype;
^
TypeError: Cannot read property 'prototype' of undefined
at Object. (.../osc-web/node_modules/socket.io/lib/store.js:35:42)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (.../osc-web/node_modules/socket.io/lib/manager.js:16:13)
at Module._compile (module.js:652:30)
This seems to have something to do with deprecated functions of node. Do you have any idea?
Thanks
Julius
I get the following errors:
Error: Cannot find module 'node-osc'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
Tried using this but keeps going on constantly about require.paths is removed and tried to fix it but can't figure it out.
how can I send values with an osc message?
Hi!
I try to access a website (with web-osc) with an ipad over a local server (Apache server with XAMPP). This is not a problem. It is a website with some buttons. the button clicks are passed to vvvv-software trhough UDP/OSC. So you can remotley trigger vvvv throgh the website opened on the ipad. now I would like to add a second, third, fourth,... mobile device. how do I do it? if I open up a second instance of the website bridge.js shows "Error: bin EADDRINUSE". I guess because the second site tries to bin to the same port?!
would appreciate if someone can help me!
thanks
david
Trying to pass arguments to Qlab but having trouble with spaces in messages.
The OSC message from the WEBsite:
socket.emit('message', '/cue/2/fadeAndStopOthers 3')
Is passed on as '/cue/2/fadeAndStopOthers' '3'.
I guess it is connected to:
var toSend = obj.split(' ');
Any way to pass OSC messages with spaces?
Hey ;)
I just found this http://www.tamats.com/blog/?p=339&cpage=1
This realy helped me.
But I dont understand how you reset sent message with it !
I realy noob on node. So, if you want to try and give me feedback its would be fresh for my new install...
Thx for your great great work.
Hi,
I was testing osc-web-server and got this messages in my console :
info - unhandled socket.io url
warn - unknown transport: "undefined"
I think i've done all right... How can I fix it ?
is there a way to send int/float values? seems like it can only send symbols using
socket.emit('message', '/foo/bar 1 2 3')
Hi.
Is there a way to limit the outgoing OSC messages. In example 1 per second?
Hey this repo was very useful to build a setup I'm working on.
I kind of stole the code and updated it to the latest version of socket-io so it now can work with moders socketio js client.
Check it out here if interested. @automata feel free to integrate the updated bridge.js
to your repo obviously.
https://github.com/Polyterative/POLY_REACTIVE_VISUALS/tree/master/osc-server
Thanks a lot for this!
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.