@jajoosam/

chat-starter

Nodejs

Start building your own chatroom in a CLI!

fork
loading
Files
  • index.js
  • package-lock.json

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.4051858428000461","path":"index.js","file":{"path":"index.js","content":{"asEncoding":{"base64":"Ly9Tb2NrZXQuaW8KdmFyIGlvID0gcmVxdWlyZSgnc29ja2V0LmlvLWNsaWVudCcpOwp2YXIgc29ja2V0ID0gaW8oImh0dHBzOi8vY2hhdC1zZXJ2ZXItLWpham9vc2FtLnJlcGwuY28iKTsKCi8vUmVhZGxpbmUKY29uc3QgcmVhZGxpbmUgPSByZXF1aXJlKCdyZWFkbGluZScpOwpjb25zdCBybCA9IHJlYWRsaW5lLmNyZWF0ZUludGVyZmFjZSh7CiAgaW5wdXQ6IHByb2Nlc3Muc3RkaW4sCiAgb3V0cHV0OiBwcm9jZXNzLnN0ZG91dAp9KTsKCgp2YXIgaWQgPSAiIjsKdmFyIGJ1ZmZlciA9ICIiOwoKZnVuY3Rpb24gY2hhdCgpewoJCn0KCgpzb2NrZXQub24oJ2Nvbm5lY3QnLCAoKSA9PiB7CgkKfSk="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//Socket.io
var io = require('socket.io-client');
var socket = io("https://chat-server--jajoosam.repl.co");

//Readline
const readline = require('readline');
const rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout
});


var id = "";
var buffer = "";

function chat(){
	
}


socket.on('connect', () => {
	
})
node v10.16.0