| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * @package VikBooking |
| 4 | 4 | * @subpackage core |
| 5 | 5 | * @author E4J s.r.l. |
| 6 | - * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved. | |
| 6 | + * @copyright Copyright (C) 2026 E4J s.r.l. All Rights Reserved. | |
| 7 | 7 | * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL |
| 8 | 8 | * @link https://vikwp.com |
| 9 | 9 | */ |
| 10 | 10 | |
| @@ -48,5 +48,15 @@ | ||
| 48 | 48 | * |
| 49 | 49 | * @return bool True if allowed, false otherwise. |
| 50 | 50 | */ |
| 51 | 51 | public function can(string $scope, ?VBOChatContext $context = null); |
| 52 | + | |
| 53 | + /** | |
| 54 | + * Useful to mantain the user logged in. | |
| 55 | + * Fires every time the chat is refreshed (synced) | |
| 56 | + * | |
| 57 | + * @param VBOChatContext|null $context The involved context, if any. | |
| 58 | + * | |
| 59 | + * @return void | |
| 60 | + */ | |
| 61 | + public function keepAlive(?VBOChatContext $context = null); | |
| 52 | 62 | } |