<!DOCTYPE html>

<html>
<head>
    <title>Affinity JS Demo</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width">
    <script type="text/javascript" src="affinity.js"></script>
    <script type="text/javascript">

        var ws = AvroWebSocket("ws://localhost:18881/vertex?id=1", function(msg) {
            // console.log(msg);
            if (msg == null) {
                console.log("[doesn't exist]");
            } else {
                // console.log(msg.edges[1].he