-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.html
More file actions
executable file
·28 lines (19 loc) · 781 Bytes
/
Copy pathdebug.html
File metadata and controls
executable file
·28 lines (19 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!doctype html>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<title>Debug</title>
<script src="/socket.io/socket.io.js"></script>
<!-- <script src="../../vendor/three.js"></script> -->
<!-- <script src="../../vendor/threestrap.js"></script> -->
<script src="../../vendor/argon/argon.js"></script>
<!-- <script src="../../vendor/argon/argon-three.js"></script> -->
<body></body>
<script>
var socket = io()
ARGON.managerPort._eventOutput.pipe(function(type, event) {
socket.emit('fromRemoteChannelManager', {type:type, event:event})
})
socket.on('toRemoteChannelManager', function(data) {
if (data.type !== 'unload') // ignore unload events
ARGON.managerPort.trigger(data.type, data.event)
})
</script>