Skip to content

Commit a709629

Browse files
committed
Start disconnected to prevent calls to localhost.
1 parent 76c0c55 commit a709629

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

packages/ddp-client/client/client_convenience.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ Meteor.connection = DDP.connect(ddpUrl, {
4242
onDDPVersionNegotiationFailure: onDDPVersionNegotiationFailure
4343
});
4444

45+
// HACK: Set offline status since DDP connect does not automatically connect anymore.
46+
Meteor.connection.disconnect();
47+
4548
// Proxy the public methods of Meteor.connection so they can
4649
// be called directly on Meteor.
4750
[

packages/socket-stream-client/browser.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ export class ClientStream extends StreamClientCommon {
4646
);
4747

4848
//// Kickoff!
49-
this._launchConnection();
49+
// HACK: Prevent from launching the socket automatically to avoid connecting on desktop.
50+
// this._launchConnection();
5051
}
5152

5253
// data is a utf8 string. Data sent while not connected is dropped on

0 commit comments

Comments
 (0)