interface DefaultSocketIOAPIOptions {
    authEncSecret: string;
    authSignSecret: string;
    authenticate?: AuthenticationFunction;
    channelPrefix: string;
    cors?: CorsOptions | CorsOptionsDelegate<CorsRequest>;
    namespace: string;
}

Hierarchy (view full)

Properties

authEncSecret: string

Secret use to encrypt the JWT Token

authSignSecret: string

Secret use to sign the JWT Token

authenticate?: AuthenticationFunction

Function that will be called to authenticate the user via validators. When not provided, this will default to bearer authentication (security.defaultBearerAuth)

Typically you would only provide this if designing your own authentication or using cookie auth via security.defaultCookieAuth.

channelPrefix: string

Unique prefix for channel names

cors?: CorsOptions | CorsOptionsDelegate<CorsRequest>

Options for cors

namespace: string

Namespace to use for connection (e.g. /chats, /notifications)

Generated using TypeDoc