0.0.0-development.1 • Published 6 years ago

@shpear/utils v0.0.0-development.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

@shpear/utils

Utility functions for the @shpear microservice framework

Usage

const { makeServer, sendMessageAcrossTCP } = require('@shpear/utils')

// Creates a Server instance for our Message Bus
const { _server, messages } = makeServer()

// Send a message to a TCP server
sendMessageAcrossTCP({
  host: 'localhost',
  port: 5001
}, 'some value able to be sent to net.Socket.end')