kognise-replit-crosis
v0.1.5
Published
Goval connection and channel manager
Downloads
5
Readme
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' });