<html>
<head>
<title>WebSockets Echo mORMot Sample 31</title>

<style>
 html,body{font:normal 0.9em arial,helvetica;}
 #log {width:440px; height:200px; border:1px solid #7F9DB9; overflow:auto;}
 #msg {width:330px;}
</style>

<script>
var socket;

function init(){
  try
  {
    socket = new WebSocket("ws://localhost:8888/whatever/","meow");
    // socket = new WebSocket("ws://localhost:8888",""); // will also work
    log('WebSocket - status '+socket.readyState);
    socket.onopen    = function(msg){ console