Skip to content

Part 4: Building the browser client

Sergi Almar edited this page Nov 21, 2013 · 4 revisions

Create a file in your public directory called chat.html(node.js will serve it as a static resource), and add the following HTML5 skeleton:

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>Mobos Chat</title>
	<!--[if lt IE 9]>
	<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
</head>
<body>
	
 
</body>
<script src="/socket.io/socket.io.js" ></script>
</html>

Clone this wiki locally