public function pushMessage($server, array $data)
    {
        $pusher = Pusher::make($data, $server);
        $pusher->push($this->payloadParser->encode(
            $pusher->getEvent(),
            $pusher->getMessage()
        ));
    }
public function pushMessage($server, array $data)
    {
        $pusher = Pusher::make($data, $server);
        $pusher->push($this->payloadParser->encode(
            $pusher->getEvent(),
            $pusher->getMessage()
        ));
    }
public function pushMessage ( $ server , array $ data ) { $ pusher = Pusher :: make ( $ data , $ server ) ; $ pusher -> push ( $ this -> payloadParser -> encode ( $ pusher -> getEvent ( ) , $ pusher -> getMessage ( ) ) ) ; }
Push websocket message to clients.

@param \Swoole\Websocket\Server $server
@param mixed $data
Push websocket message to clients .