@needle-tools/networking
Version:
Networking backend functionality for Needle Engine
17 lines (16 loc) • 503 B
HTML
<html lang="en">
<head>
<meta charset="utf-8">
<title>---</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="text/css" rel="stylesheet" href="./css/main.css">
</head>
<body>
<script type="module">
const ws = new WebSocket( 'wss://' + window.location.hostname );
ws.binaryType = 'arraybuffer';
</script>
</body>
</html>