Comments (8)
ok, I added the network/websocket component, it allows to send different data through different channels.
I also added a network/sillyclient that connects to a sillyserver which bounces packets back to all connected users, for more info: https://github.com/jagenjo/SillyServer.js
I havent tested the websockets one, but the sillyserver works perfectly
from litegraph.js.
I uploaded a version yesterday that has the "only send changes" which will only send the data if it changes. Update to the newer version to get the changes.
from litegraph.js.
thank you for the websocket support, I would like it to send data from knobs, sliders, etc.
It seems it only supports some room chat messages right now.
from litegraph.js.
are you using the sillyserver or the websocket?
from litegraph.js.
your websocket module with my nodejs websocket server, this works fine:
this._ws.onopen = function()
{
console.log("ready");
that.boxcolor = "#8E8";
that._ws.send( JSON.stringify({ type:1, msg: "data" }) );
}
this._ws.onmessage = function(e)
{
console.log("_ws.onmessage" + e);
from litegraph.js.
so how can I send a websocket message when I change the slider value?
from litegraph.js.
just plug the slider value to the IN field in the websocket node and press play
it will send a message every time it detects the value has changed.
from litegraph.js.
yes, easy one, sorry!
I had to rework my websocket server code to match your incoming messages.
It seems that messages are always sent even if the slider value doesn't change.
I would need to add an output to the text node to send the text via websocket.
from litegraph.js.
Related Issues (20)
- size not working
- Can we render link in different colors by its value? HOT 1
- Question: Creating a NESTED canvas?
- [Feature Req] Ability to distribute nodes (vertically or horizontally)
- Create a Basic Color node or Widget HOT 1
- computeConnectionPoint doesn't respect links_render_mode
- is there an onGraphChange() or onCanvasChange() event? HOT 1
- question: how to use ui for (*custom*) python code generation? HOT 2
- The method mounted on global in the ES Modules environment throws an error
- Linting question
- Preview of what link is sending to node doesn't work after saving and reloading with configure HOT 1
- Text button and prompt dialog
- Background turns black when zooming out
- how to render a different link color when mouseover a link?
- Getting the coordinates on a graph
- How to realize redo and undo? HOT 1
- When the canvas attribute size and CSS style size are inconsistent, interactive events such as clicking on nodes fail. HOT 1
- Bootstrap 5.0.2 makes "Add Node" invisible
- Issue with Output Port Position Adjustment
- Numberpad enter creates a new line in input field of the properties.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from litegraph.js.