mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-01 03:04:11 +00:00
Update README.md
This commit is contained in:
11
README.md
11
README.md
@@ -79,6 +79,17 @@ LiteGraph.registerNodeType("basic/sum", MyAddNode );
|
||||
|
||||
```
|
||||
|
||||
or you can wrap an existing function:
|
||||
|
||||
```js
|
||||
function sum(a,b)
|
||||
{
|
||||
return a+b;
|
||||
}
|
||||
|
||||
LiteGraph.wrapFunctionAsNode("math/sum",sum, ["Number","Number"],"Number");
|
||||
```
|
||||
|
||||
## Server side
|
||||
|
||||
It also works server-side using Node although some nodes do not work in server (audio, graphics, input, etc).
|
||||
|
||||
Reference in New Issue
Block a user