Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kataras committed Jun 30, 2019
1 parent ca73e99 commit 374700d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
5 changes: 1 addition & 4 deletions dist/neffos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/neffos.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/neffos.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "neffos.js",
"version": "0.1.16",
"version": "0.1.17",
"description": "javascript client for the modern neffos websocket framework",
"keywords": [
"neffos",
Expand Down
5 changes: 1 addition & 4 deletions src/neffos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -868,10 +868,7 @@ function whenResourceOnline(endpoint: string, checkEvery: number, notifyOnline:
// Chrome itself is emitting net::ERR_CONNECTION_REFUSED and the final Bad Request messages to the console on network failures on fetch,
// there is no way to block them programmatically, we could do a console.clear but this will clear any custom logging the end-dev may has too.

let endpointHTTP = endpoint.replace("ws://", "http://");
if (endpoint.startsWith("wss://")) {
endpointHTTP = endpoint.replace("ws://", "https://");
}
let endpointHTTP = endpoint.replace(/(ws)(s)?\:\/\//, "http$2://");

// counts and sends as header the previous failures (if any) and the succeed last one.
let tries = 1;
Expand Down

0 comments on commit 374700d

Please sign in to comment.