File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -189,6 +189,7 @@ LeanEngine 中间件会为这些 Hook 函数检查「Hook 签名」,确保调
189189* `AV.Cloud.onIMConversationUpdate`
190190* `AV.Cloud.onIMClientOnline`
191191* `AV.Cloud.onIMClientOffline`
192+ * `AV.Cloud.onIMClientSign`
192193
193194LeanEngine 中间件会为这些 Hook 函数检查「Hook 签名」,确保调用者的确是 LeanCloud 或本地调试时的命令行工具。
194195
Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ export namespace Cloud {
159159 export function onIMConversationUpdate ( handler : CloudFunction ) : void ;
160160 export function onIMClientOnline ( handler : CloudFunction ) : void ;
161161 export function onIMClientOffline ( handler : CloudFunction ) : void ;
162+ export function onIMClientSign ( handler : CloudFunction ) : void ;
162163
163164 export function LeanCloudHeaders ( options ?: MiddlewareOptions ) : RequestHandler ;
164165 export function CookieSession ( options ?: CookieSessionOptions ) : RequestHandler ;
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ exports.realtimeHookMapping = {
2323 onIMConversationRemove : '_conversationRemove' ,
2424 onIMConversationUpdate : '_conversationUpdate' ,
2525 onIMClientOnline : '_clientOnline' ,
26- onIMClientOffline : '_clientOffline'
26+ onIMClientOffline : '_clientOffline' ,
27+ onIMClientSign : '_rtmClientSign'
2728} ;
2829
2930exports . unauthResp = function ( res ) {
You can’t perform that action at this time.
0 commit comments