/chat

a chat app

Primary LanguageJavaScriptMIT LicenseMIT

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