mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 19:21:54 +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
|
## Server side
|
||||||
|
|
||||||
It also works server-side using Node although some nodes do not work in server (audio, graphics, input, etc).
|
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