Remove prefix from channel. #424

This commit is contained in:
Korina Cordero 2020-06-24 07:55:50 +00:00
parent 4de9a00942
commit 47a52782f7
2 changed files with 1 additions and 2 deletions

View file

@ -675,7 +675,7 @@ class CMBJobOrderHandler implements JobOrderHandlerInterface
if ($old_rider != $rider)
{
// TODO: refactor later
$channel = '/rider/' . $rider->getID() . '/events';
$channel = 'rider/' . $rider->getID() . '/events';
$payload = [
'event' => 'new_jo',
'jo_id' => $jo->getID(),

View file

@ -58,7 +58,6 @@ function initEventHandler(dashmap, icons, ssl) {
},
};
console.log(ssl);
var event_handler = new MapEventHandler(options, dashmap, ssl);
event_handler.connect('{{ app.user.getID }}', '{{ mqtt_host }}', {{ mqtt_port }});
}