Commit e1eadbcf authored by Roland Haeder's avatar Roland Haeder Committed by mmn

Fixes for making Meteor working with HTTPS.

Signed-off-by: default avatarRoland Haeder <roland@mxchange.org>
parent c1a0132c
......@@ -103,9 +103,10 @@ class MeteorPlugin extends RealtimePlugin
function _updateInitialize($timeline, $user_id)
{
$script = parent::_updateInitialize($timeline, $user_id);
$ours = sprintf("MeteorUpdater.init(%s, %s, %s);",
$ours = sprintf("MeteorUpdater.init(%s, %s, %s, %s);",
json_encode($this->webserver),
json_encode($this->webport),
json_encode($this->protocol),
json_encode($timeline));
return $script." ".$ours;
}
......
......@@ -4,7 +4,7 @@ var MeteorUpdater = function()
{
return {
init: function(server, port, timeline)
init: function(server, port, scheme, timeline)
{
Meteor.callbacks["process"] = function(data) {
RealtimeUpdate.receive(JSON.parse(data));
......@@ -12,6 +12,7 @@ var MeteorUpdater = function()
Meteor.host = server;
Meteor.port = port;
Meteor.scheme = scheme;
Meteor.joinChannel(timeline, 0);
Meteor.connect();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment