Noncommital Premarital Mischief

    socket-io-telnet-relay-server

    0.1.0 • Public • Published

    socket-io-telnet-relay-server

    An npm package for a relay server to connect telnet clients to socket.io servers

    Usage

    You can install it from npm with:

    npm install socket-io-telnet-relay-server
    

    You can import it with

    const RelayServer = require("socket-io-telnet-relay-server");

    You must specify the address of the socket.io server, the event to emit to socket.io by, and the port for the telnet server to run on. To send data to all telnet clients, you can use the allUsers event, followed by the data. To send data to a certain telnet client, you must use the user event, with the id of the telnet client and the data. Warning! The telnet client ids can change extremely quick as soon as a client drops When a telnet client sends data, it will use the event you specified when created the RelayServer, with an object containing a user attribute specifying the id of the user, and a data attribute which has the data.

    Keywords

    none

    Install

    npm i socket-io-telnet-relay-server

    DownloadsWeekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    2.45 kB

    Total Files

    3

    Last publish

    Collaborators

    • shadowtime2000