original_string: public function decode($frame)
      {
          $payload = Packet::getPayload($frame->data);
  
          return [
              'event' => $payload['event'] ?? null,
              'data' => $payload['data'] ?? null,
          ];
      }
code: public function decode($frame)
      {
          $payload = Packet::getPayload($frame->data);
  
          return [
              'event' => $payload['event'] ?? null,
              'data' => $payload['data'] ?? null,
          ];
      }
code_tokens: public function decode ( $ frame ) { $ payload = Packet :: getPayload ( $ frame -> data ) ; return [ 'event' => $ payload [ 'event' ] ?? null , 'data' => $ payload [ 'data' ] ?? null , ] ; }
docstring: Decode message from websocket client.
  Define and return payload here.
  
  @param \Swoole\Websocket\Frame $frame
  
  @return array
docstring_tokens: Decode message from websocket client . Define and return payload here .