Skip to content

Commit

Permalink
feat: add _clientOnline,_clientOffline hooks (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
weakish authored Oct 25, 2019
1 parent 00f5cb2 commit d33ddda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/LeanCloud/Engine/LeanEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ private function dispatchFunc($funcName, $body, $decodeObj=false) {
if (in_array($funcName, array(
'_messageReceived', '_receiversOffline', '_messageSent',
'_conversationStart', '_conversationStarted',
'_conversationAdd', '_conversationRemove', '_conversationUpdate'
'_conversationAdd', '_conversationRemove', '_conversationUpdate',
'_clientOnline', '_clientOffline'
))) {
static::verifyHookSign($funcName, $body["__sign"]);
}
Expand Down

0 comments on commit d33ddda

Please sign in to comment.