Skip to content

Instantly share code, notes, and snippets.

View dperez-mulet's full-sized avatar

David Perez Mulet dperez-mulet

View GitHub Profile
<html>
<head>
<style type="text/css">
li{cursor: pointer;}
.chat{position: relative; width:20%; margin: 10px }
.chatcont{
margin:10px;
var express = require('express');
var app = express();
var options = {transport: ['websocket']};
var io = require('socket.io')(options).listen(app.listen(process.env.PORT || 3000));
app.get('/', function(req, res){
res.sendfile('index.html');
});