repl.it
@jajoosam/

chat-starter

Nodejs

Start building your own chatroom in a CLI!

fork
loading
Files
  • index.js
  • package-lock.json
index.js
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