MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / streamOutput

Function streamOutput

tools/js/serve-dev-webui.js:161–169  ·  view source on GitHub ↗
(prefix, stream)

Source from the content-addressed store, hash-verified

159
160 // Helper function to handle streaming output
161 const streamOutput = (prefix, stream) => {
162 stream.on('data', data => {
163 process.stdout.write(`[${prefix}] ${data}`)
164 })
165
166 stream.on('error', data => {
167 process.stderr.write(`[${prefix}] ${data}`)
168 })
169 }
170
171 // Spawn 'go run ./cmd/ttn-lw-stack start'
172 const goProcess = spawn('go', ['run', './cmd/ttn-lw-stack', 'start'], {

Callers 1

serve-dev-webui.jsFile · 0.85

Calls 2

onMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected