<!DOCTYPE html>
<html lang="en">
	<head>
		<title>Resist Game : Can you resist the waves of monsters ?</title>
		<link rel="stylesheet" href="client/css/global.css" />
		<script src="/socket.io/socket.io.js"></script>
	</head>
	<body>
		<h3>Resist-Game : Coming soon...</h3>

		<script>
		  var socket = io.connect('http://localhost');
		  socket.on('news', function (data) {
		    console.log(data);
		    socket.emit('my other event', { my: 'data' });
		  });
		</script>
	</body>
</html>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>Resist Game : Can you resist the waves of monsters ?</title>
		<link rel="stylesheet" href="/client/css/global.css" />
		<script src="/socket.io/socket.io.js"></script>
	</head>
	<body>
		<h3>Resist-Game : Coming soon...</h3>

		<script>
		  var socket = io.connect('http://localhost');
		  socket.on('news', function (data) {
		    console.log(data);
		    socket.emit('my other event', { my: 'data' });
		  });
		</script>
	</body>
</html>
Add charset and absolute path
Add charset and absolute path
