Skip to content

Commit 65f66e2

Browse files
committed
0.6.14 - enable wss:// protocol
1 parent 6555105 commit 65f66e2

4 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@webantic/react-web-meteor",
3-
"version": "0.6.13",
3+
"version": "0.6.14",
44
"description": "Meteor Reactivity for your React application",
55
"main": "dist/index.js",
66
"scripts": {

src/URL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const absoluteUrl = (path) => {
1919
export const absoluteApiUrl = (path) => {
2020
const wsUrl = Data.ddp.socket.endpoint
2121

22-
return wsUrl.replace('ws:', window.location.protocol).replace('/websocket', '') + path
22+
return wsUrl.replace(/wss?:/, window.location.protocol).replace('/websocket', '') + path
2323
}
2424

2525
// Encode URL paramaters into a query string, handling nested objects and
-429 KB
Binary file not shown.
428 KB
Binary file not shown.

0 commit comments

Comments
 (0)