⚠️ Internal: This API is not publically exported by the
package.
Type alias VerifyClientCallbackSync<Request>
VerifyClientCallbackSync<Request>: ((info) => boolean)
Type declaration
- (info): boolean
Parameters
info: {
origin: string;
req: Request;
secure: boolean;
}
origin: string
secure: boolean
Returns boolean
VerifyClientCallbackSync is a synchronous callback used to inspect the incoming message. The return value (boolean) of the function determines whether or not to accept the handshake.