@chatally/core

0.0.4 • Public • Published

@chatally/core

ChatAlly Core

Getting started

Install the package and for testing a console chat server

npm install @chatally/core @chatally/console

Use the application

// index.js
import { Application } from "@chatally/core";
import { ConsoleServer } from "@chatally/console";

new Application({ log: false }) //
  .use(new ConsoleServer())
  .use(function echo({ req, res }) {
    if (res.isWritable) {
      res.write(`You said '${req.text}'`);
    }
  })
  .listen();

Documentation

Find the full documentation at https://chatally.org/guides.

Readme

Keywords

none

Package Sidebar

Install

npm i @chatally/core

Weekly Downloads

3

Version

0.0.4

License

MIT

Unpacked Size

18.9 kB

Total Files

16

Last publish

Collaborators

  • shackhacker-christian