Skip to content

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

Notifications You must be signed in to change notification settings

socketsupply/socket-pipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 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', json))
})

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published