Skip to content

Commit

Permalink
Merge branch 'v12.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Sep 30, 2023
2 parents b42bc61 + b310287 commit 1c4c1f3
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions demo/main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const Gleap = window.Gleap;

// Gleap.setFrameUrl("http://localhost:3001");
// Gleap.setApiUrl("http://localhost:9000");
// Gleap.setWSApiUrl("ws://localhost:8080");
Gleap.setFrameUrl("http://0.0.0.0:3001");
Gleap.setApiUrl("http://0.0.0.0:9000");
Gleap.setWSApiUrl("ws://0.0.0.0:8080");

// Gleap.setLanguage("en");

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gleap",
"version": "12.0.0",
"version": "12.0.1",
"main": "build/index.js",
"scripts": {
"start": "webpack serve",
Expand Down
2 changes: 1 addition & 1 deletion published/12.0.0/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion published/latest/index.js

Large diffs are not rendered by default.

10 changes: 4 additions & 6 deletions src/GleapStreamedEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,10 @@ export default class GleapStreamedEvent {
handleOpen(event) {
this.pingWS = setInterval(() => {
if (this.socket.readyState === this.socket.OPEN) {
this.socket.send(JSON.stringify({
name: 'ping',
data: {},
}));
this.socket.send("PING");
this.socket.send(0x9);
}
}, 30000);
}, 10000);

if (this.connectionTimeout) {
clearTimeout(this.connectionTimeout);
Expand Down Expand Up @@ -207,7 +205,7 @@ export default class GleapStreamedEvent {

this.mainLoopTimeout = setTimeout(function () {
self.runEventStreamLoop();
}, 2000);
}, 3000);
};

streamEvents = () => {
Expand Down

0 comments on commit 1c4c1f3

Please sign in to comment.