> For the complete documentation index, see [llms.txt](https://runninghorse.gitbook.io/gdnet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://runninghorse.gitbook.io/gdnet/net.scene/sendrt-player-client-byte-cmd-object-obj.md).

# SendRT(Player client, byte cmd, object obj)

```
    public virtual void SendRT(Player client, byte cmd, object obj)
    {
        if (cmd < 30)
            throw new Exception("自定义协议(命令)不能使用内核协议(命令)进行发送!");
        using (MemoryStream stream = new MemoryStream(1024))
        {
            ProtoBuf.Serializer.Serialize(stream, obj);
            SendRT(client, cmd, stream.ToArray());
        }
    }
```
