forked from massimocandela/BGPlay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_bgplay_realtime.html
28 lines (28 loc) · 960 Bytes
/
run_bgplay_realtime.html
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
<html>
<head>
<title>bgplay.js</title>
<script src="widget/bgplayjs-main-widget.js"></script>
</head>
<body>
<div id="bgplay"></div>
<script>
BGPlayWidget(
'BGPlayRT', // Version type
'bgplay', // DOM element ID
{
width: 1100,
height: 800,
updateWithStreaming: true, // Enable the streaming functions
streamInitialDump: true, // Get the initial dump from the streaming (or from the REST API)
streamingOn: true, // Streaming updates enabled by default
streamingServerUrl: "ws://[IP:PORT]/[APP_LOCATION]",
//authenticationToken: "002cf306682129f68b1dc806a550d1",
prefixMatch: 1 // -1 = less specific, 0 = exact match, 1 = more specific
}, {
"resource": "193.0.0.0/21",
"unix_timestamps": "TRUE"
}
);
</script>
</body>
</html>