Skip to content
run node processes and talk to them
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
cmd/nodeflock
nodeflock-php
nodeflock-process
.gitignore
Gopkg.lock
Gopkg.toml
LICENSE
Makefile
README.md
nodeflock.go
process.go
process_test.go
server.go

README.md

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.

flock, err := nodeflock.NewFlock("path/to/module.js", 5)

result, console, err := flock.Call("WhatEver.Static.Call", "hello js")
You can’t perform that action at this time.