<!doctype html>
<html>
<head>
    <title>Kraft JSON WebSocket Demo</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>

<h1>Kraft JSON-RPC WebSocket Demo</h1>
<p>To see web socket communication, open the JavaScript console.</p>

<script type="text/javascript">

const socket = new WebSocket('ws://localhost:8092/jsonrpc/ws');

function send(socket, message) {
    console.log('Message to server', message);
    socket.send(message);
}
