Skip to content

Commit 1c4c1f3

Browse files
committed
Merge branch 'v12.0.0'
2 parents b42bc61 + b310287 commit 1c4c1f3

File tree

6 files changed

+11
-13
lines changed

6 files changed

+11
-13
lines changed

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const Gleap = window.Gleap;
22

3-
// Gleap.setFrameUrl("http://localhost:3001");
4-
// Gleap.setApiUrl("http://localhost:9000");
5-
// Gleap.setWSApiUrl("ws://localhost:8080");
3+
Gleap.setFrameUrl("http://0.0.0.0:3001");
4+
Gleap.setApiUrl("http://0.0.0.0:9000");
5+
Gleap.setWSApiUrl("ws://0.0.0.0:8080");
66

77
// Gleap.setLanguage("en");
88

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gleap",
3-
"version": "12.0.0",
3+
"version": "12.0.1",
44
"main": "build/index.js",
55
"scripts": {
66
"start": "webpack serve",

published/12.0.0/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/latest/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GleapStreamedEvent.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,10 @@ export default class GleapStreamedEvent {
7575
handleOpen(event) {
7676
this.pingWS = setInterval(() => {
7777
if (this.socket.readyState === this.socket.OPEN) {
78-
this.socket.send(JSON.stringify({
79-
name: 'ping',
80-
data: {},
81-
}));
78+
this.socket.send("PING");
79+
this.socket.send(0x9);
8280
}
83-
}, 30000);
81+
}, 10000);
8482

8583
if (this.connectionTimeout) {
8684
clearTimeout(this.connectionTimeout);
@@ -207,7 +205,7 @@ export default class GleapStreamedEvent {
207205

208206
this.mainLoopTimeout = setTimeout(function () {
209207
self.runEventStreamLoop();
210-
}, 2000);
208+
}, 3000);
211209
};
212210

213211
streamEvents = () => {

0 commit comments

Comments
 (0)