Reputation: 1067
Im trying to send OSC messages (open sound control) from a vue-native (vue wrapper for react-native) app straight to an application called Touchdesigner.
I have now solved this by sending messages from my client app on my android to a node server where I am forwarding the message as OSC which I am receiving in Touchdesigner.
I wounder if there are a better way of doing this? Basically I want to send messages straight to Touchdesigner application which allows me to receive OSC messages. But I cannot find a way of sending osc-messages from vue-native.
Is there a vue-native / react native way of sending osc messages?
Upvotes: 1
Views: 554
Reputation: 3794
I created react-native-osc that allows you to send OSC messages from React Native:
npm install react-native-osc
cd ios && pod install
Usage:
import osc from 'react-native-osc';
osc.createClient("localhost", 9090);
osc.sendMessage("/address/", [1.0, 0.0]);
I hope it hepls.
Upvotes: 1