0.1.5 • Published 5 years ago

kognise-replit-crosis v0.1.5

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
5 years ago

https://replit-crosis--masfrost.repl.co/

Exported

You probably don't need this but it's exported: Channel

Usage

import { Client } from '@replit/crosis';

const client = new Client();

client.connect({
  tokenOptions: {
    replId,
  },
});

const channel = connection.openChannel({
  name: 'evaller',
  service: 'eval',
});

channel.on('cmd', (cmd) => {
  console.log(cmd)
})

channel.send({ eval: '1+1' });