⚠️ Internal: This API is not publically exported by the
package.
Type alias VerifyClientCallbackAsync<Request>
VerifyClientCallbackAsync<Request>: ((info, callback) => void)
Type declaration
- (info, callback): void
Parameters
info: {
origin: string;
req: Request;
secure: boolean;
}
origin: string
secure: boolean
callback: ((res, code?, message?, headers?) => void)
- (res, code?, message?, headers?): void
Parameters
res: boolean
Optional
code: number
Optional
message: string
Returns void
Returns void
VerifyClientCallbackAsync is an asynchronous callback used to inspect the incoming message. The return value (boolean) of the function determines whether or not to accept the handshake.