- fixed some "rubber banding" problems with system position (new "update queue" system for maps, JS)
- Decreased mapData cache 120s -> 60s - Increased default "lifetime" for "private" maps 14d -> 30d - UI tweaks for "connection <-> signature" linked labels, #290 - fixed some "drag&drop" problems with connections - Updated "jQuery" 3.0.0 => 3.1.1 - PHP7.1 fixes (routes.ini), closed #410 - fixed a bug where "mapAccess" data is not properly send through webSocket
This commit is contained in:
@@ -577,23 +577,17 @@ class Map extends Controller\AccessController {
|
||||
* -> if characters with map access found -> broadcast mapData to them
|
||||
* @param Model\MapModel $map
|
||||
* @param array $characterIds
|
||||
* @return int
|
||||
*/
|
||||
protected function broadcastMapAccess($map, $characterIds){
|
||||
$connectionCount = 0;
|
||||
|
||||
$mapAccess = [
|
||||
'id' => $map->_id,
|
||||
'characterIds' => $characterIds
|
||||
];
|
||||
$charCount = (int)(new Socket( Config::getSocketUri() ))->sendData('mapAccess', $mapAccess);
|
||||
|
||||
if($charCount > 0){
|
||||
// map has active connections that should receive map Data
|
||||
$connectionCount = $this->broadcastMapData($map);
|
||||
}
|
||||
(new Socket( Config::getSocketUri() ))->sendData('mapAccess', $mapAccess);
|
||||
|
||||
return $connectionCount;
|
||||
// map has (probably) active connections that should receive map Data
|
||||
$this->broadcastMapData($map);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user