Socket
Book a DemoInstallSign in
Socket

talk.chat

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

talk.chat

Featured TCP Chat server built on pure NodeJS

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

TALK.CHAT

TCP Chat server built on pure NodeJS. Source code for a software talk that didn't hold. Had to finish writing the code 😁

Installing

From source:

git clone https://github.com/miraclx/talk.chat.git

Usage

cd talk.chat
node server.js

Connection

You can use anything that can keep a TCP connection

$ nc localhost 8888
What is your name? 

Features

Auto root

By default, starting the server automatically logs in the root user. Right there, the process's I/O is linked to the chat server. This user has administrative powers. You can also logout here to login elsewhere.

Direct private messages

To send direct messages, reference the user like so

@michael Hello

Personal Messages

To save personal messages, send a direct message to yourself

Administrator elevation

Admin users can perform certain operations not granted to other users

.makeadmin [user]
.revokeadmin [user]

Absence of explicit stating of user would automatically infer to carry out the operation on the user executing the command

Commands

  • .bye: Alias for .logout
  • .exit: Alias for .logout
  • .help: Alias for .commands
  • .list: List all users, blocked or not
  • .logout: Logout from the service
  • .commands: List all group commands
  • .block: Block a user from receiving or sending messages (admin only)
  • .unblock: Unblock a user if already blocked (admin only)
  • .makeadmin: Grant administrator permissions to the user (admin only)
  • .revokeadmin: Revoke administrator permissions to a user (admin only)
  • .shutdown: Shutdown the chat server (admin only)

License

Apache 2.0 © Miraculous Owonubi (@miraclx) <omiraculous@gmail.com>

Keywords

chat

FAQs

Package last updated on 26 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts