Skip to content

ralphtheninja/socket-pipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple pipe that connects Node with Socket and shows you how to construct ipc messages for things like writing to stdout or setting the title of a window from Node.

import { Message } from '@socketsupply/socket-api/ipc.js'
import { Pipe } from '@socketsupply/socket-pipe'

const pipe = new Pipe({ json: true })

pipe.on('data', json => {
  pipe.write(Message.from('stdout', data))
})

About

A high level module for using Node.js as a Socket Runtime backend

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors