export declare enum WebSocketEvent { CONNECT = "connect", DISCONNECT = "disconnect", ERROR = "error", MESSAGE = "message" } export declare enum WebSocketAction { JOIN = "join", LEAVE = "leave", SEND = "send", BROADCAST = "broadcast", ROOMS = "rooms", ON = "on", OFF = "off" } export declare enum WSStorageType { MONGODB = "mongodb", REDIS = "redis" } export declare enum WSDataType { socket = "socket", room = "room" } export declare const DEFAULT_NAMESPACE = "/__faas__default__"; export declare const DEFAULT_MAX_CONCURRENT = 20; export declare enum CloseStatus { NORMAL = "NORMAL",// indicates a normal closure, meaning that the purpose for which the connection was established has been fulfilled. GOING_AWAY = "GOING_AWAY",// indicates that an endpoint is "going away", such as a server going down or a browser having navigated away from a page. PROTOCOL_ERROR = "PROTOCOL_ERROR",// indicates that an endpoint is terminating the connection due to a protocol error. BAD_DATA = "BAD_DATA",// indicates that an endpoint is terminating the connection because it has received data within a message that was not consistent with the type of the message (e.g., non-UTF-8 [RFC3629] data within a text message). TOO_BIG_TO_PROCESS = "TOO_BIG_TO_PROCESS",// indicates that an endpoint is terminating the connection because it has received a message that is too big for it to process. SERVER_ERROR = "SERVER_ERROR",// indicates that a server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request. SERVICE_RESTARTED = "SERVICE_RESTARTED",// indicates that the service is restarted. A client may reconnect, and if it chooses to do, should reconnect using a randomized delay of 5 - 30s. SERVICE_OVERLOAD = "SERVICE_OVERLOAD",// indicates that the service is experiencing overload. A client should only connect to a different IP (when there are multiple for the target) or reconnect to the same IP upon user action. USER_STATUS_1 = "USER_STATUS_1",// custom status for user application USER_STATUS_2 = "USER_STATUS_2",// custom status for user application USER_STATUS_3 = "USER_STATUS_3" } /** status 说明 NORMAL indicates a normal closure, meaning that the purpose for which the connection was established has been fulfilled. GOING_AWAY indicates that an endpoint is "going away", such as a server going down or a browser having navigated away from a page. PROTOCOL_ERROR indicates that an endpoint is terminating the connection due to a protocol error. BAD_DATA indicates that an endpoint is terminating the connection because it has received data within a message that was not consistent with the type of the message (e.g., non-UTF-8 [RFC3629] data within a text message). TOO_BIG_TO_PROCESS indicates that an endpoint is terminating the connection because it has received a message that is too big for it to process. SERVER_ERROR indicates that a server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request. SERVICE_RESTARTED indicates that the service is restarted. A client may reconnect, and if it chooses to do, should reconnect using a randomized delay of 5 - 30s. SERVICE_OVERLOAD indicates that the service is experiencing overload. A client should only connect to a different IP (when there are multiple for the target) or reconnect to the same IP upon user action. USER_STATUS_1 custom status for user application USER_STATUS_2 custom status for user application USER_STATUS_3 custom status for user application */