plain-tcp
A very simple tcp server and client build with frp-middleware
Check out the full API over at the frp-middleware repo.
Installation
$ npm install plain-tcp --save
Usage
let server = 5442server let client = 5442 client
API
#emit(String)
Sends a message to the Server. Without handling the response.
#emit(String, function)
Sends a message to the Server and calls the provided function with the response.
#subscribe()
Starts listening on the port. If a map returns an empty value the server doesn't respond to the client.