remote-log-websocket
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

remote-log-websocket

Usage

Installation

$ npm install --save remote-log-websocket

Client

On your application, just use the client with JavaScript (ES5):

require('remote-log-websocket').default('ws://localhost:12345')

...or with Babel/TypeScript:

import remoteLogWebsocket from 'remote-log-websocket'
remoteLogWebsocket('ws://localhost:12345')

Server

From command line:

remote-log --host 0.0.0.0 --port 12345

...or with environment variables:

REMOTE_LOG_HOST=0.0.0.0 REMOTE_LOG_PORT=12345 remote-log

...or from your own NodeJS wrapper:

require('remote-log-websocket/server').default('0.0.0.0', 12345)

...or with Babel/TypeScript/ts-node:

import remoteLogWebsocketServer from 'remote-log-websocket/server'
remoteLogWebsocketServer('0.0.0.0', 12345)

Readme

Keywords

none

Package Sidebar

Install

npm i remote-log-websocket

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

17.1 kB

Total Files

22

Last publish

Collaborators

  • jussi.kinnula