original_string: public function decode($frame)
      {
          $data = json_decode($frame->data, true);
  
          return [
              'event' => $data['event'] ?? null,
              'data' => $data['data'] ?? null,
          ];
      }
code: public function decode($frame)
      {
          $data = json_decode($frame->data, true);
  
          return [
              'event' => $data['event'] ?? null,
              'data' => $data['data'] ?? null,
          ];
      }
code_tokens: public function decode ( $ frame ) { $ data = json_decode ( $ frame -> data , true ) ; return [ 'event' => $ data [ 'event' ] ?? null , 'data' => $ data [ 'data' ] ?? null , ] ; }
docstring: Input message on websocket connected.
  Define and return event name and payload data here.
  
  @param \Swoole\Websocket\Frame $frame
  
  @return array
docstring_tokens: Input message on websocket connected . Define and return event name and payload data here .