<?php declare(strict_types=1);
/**
 * @package messenger
 * @author kputyr
 * @date 17.04.2025
 */

namespace IMATHUZH\Messenger;

/**
 * A collection of constants used by this package
 */
class Constants
{
    /** The user agent string for nchan publisher */
    const USER_AGENT = 'QFQ Messenger Publisher 1.0';

    /** The version of this package */
    const VERSION = '1.0';

    /** The size of a token in bytes */
    const TOKEN_SIZE = 8;

    /**                                                                                                                                                                                               
      * Session name used by the host application. Override via the                                                                                                                                           
      * NCHAN_SESSION_NAME server parameter (e.g. nginx fastcgi_param).                                                                                                                                
      * Default: PHP's built-in session name (PHPSESSID).                                                                                                                                              
      */                                                                                                                                                                                               
      public static string $sessionName = 'PHPSESSID'; 

}
