API v10EnumerationsRPCOpcodesVersion: NextOn this pageRPCOpcodes @seehttps://docs.discord.com/developers/topics/rpc#handshake-payloadIndex Enumeration MembersCloseFrameHandshakePingPongEnumeration Members CloseClose: 2Sent by either side to close the connection.FrameFrame: 1Used for all standard RPC commands and events.HandshakeHandshake: 0Sent by the client to initiate the connection.PingPing: 3Sent to check if the connection is alive.PongPong: 4Response to a PING.
https://docs.discord.com/developers/topics/rpc#handshake-payload