https://github.com/foomo/nodeflock
run node processes and talk to them
https://github.com/foomo/nodeflock
Last synced: about 1 year ago
JSON representation
run node processes and talk to them
- Host: GitHub
- URL: https://github.com/foomo/nodeflock
- Owner: foomo
- License: mit
- Archived: true
- Created: 2016-06-20T15:37:16.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-11-08T18:21:34.000Z (over 7 years ago)
- Last Synced: 2024-11-04T17:47:46.372Z (over 1 year ago)
- Language: Go
- Size: 47.9 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# run node processes and talk to them
We needed a fast way to render react views on the server. We decided the most efficient way in our case would be to spawn node processes and talk json to them through stdin / stdout / stderr.
```go
flock, err := nodeflock.NewFlock("path/to/module.js", 5)
result, console, err := flock.Call("WhatEver.Static.Call", "hello js")
```