Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

xis/chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chat

forthebadge

a chat app

requires socket-io server, set up your socket-io server before start.

to compile

git clone https://github.com/xis/chat.git
cd chat
npm install
npm start

example socket-io server

io.on('connection', function(socket){
    console.log('a user connected');
    socket.on('sendMsg', function(value){
        io.sockets.emit('msgInbound', [ value.input, value.myName, value.type ])
    });
});

commands

command for what
/username to set your username
/code to send code