<html>
<head>
<title>SimpleWebSocketServer</title>
<style type="text/css">@import url('styles.css');</style>
<script src="jquery-1.4.2.min.js"></script>
<script type="text/javascript">

$(document).ready(main);

// Run when document.ready fires
function main() {

	// Reference to the websocket object
	var ws;
	
	// Make sure sockets are supported
	testSocket();

	// Event handlers for buttons
	$('#btnStart').click(function() {
		startSocket();
	});

	$('#btnStop').click(function() {
		stopSocket();
	});
	
	