mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fixup URL to connect to.
This commit is contained in:
@@ -406,7 +406,9 @@ _.extend(Meteor._Collection.prototype, {
|
||||
}
|
||||
});
|
||||
|
||||
App = new Meteor.Server('/');
|
||||
// Path matches sockjs 'prefix' in stream_server. We should revisit this
|
||||
// once we specify the 'on the wire' aspects of livedata more clearly.
|
||||
App = new Meteor.Server('/sockjs');
|
||||
|
||||
_.extend(Meteor, {
|
||||
is_server: false,
|
||||
|
||||
@@ -226,8 +226,7 @@ _.extend(Meteor._Stream.prototype, {
|
||||
var self = this;
|
||||
self._cleanup_socket(); // cleanup the old socket, if there was one.
|
||||
|
||||
// XXX URL!
|
||||
self.socket = new SockJS('http://localhost:3000/sockjs', undefined, {debug: false});
|
||||
self.socket = new SockJS(self.url, undefined, {debug: false});
|
||||
self.socket.onmessage = function (data) {
|
||||
// first message we get when we're connecting goes to _connected,
|
||||
// which connects us. All subsequent messages (while connected) go to
|
||||
|
||||
Reference in New Issue
Block a user