#ifndef TALKINGQ_WSS_H #define TALKINGQ_WSS_H #include #define TALKINGQ_WSS_URL "wss://banban.api.talkingq.com:443/ws" #define TALKINGQ_URL_CAPACITY 64 #define TALKINGQ_HOST_CAPACITY 64 #define TALKINGQ_PATH_CAPACITY 128 extern const char talkingq_root_ca[]; extern const size_t talkingq_root_ca_size; /* Reject cleartext, malformed authorities, invalid ports and oversized URLs. */ int talkingq_parse_wss_url(const char *url, char *host, size_t host_size, int *port, char *path, size_t path_size); /* Only the former built-in endpoints migrate; custom WSS endpoints are kept. */ int talkingq_is_legacy_ws_url(const char *url); #endif