From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Library:Discord RPC" |
|---|
| claim | "Discord IPC frames are an 8-byte little-endian header (u32 opcode, u32 length) followed by length bytes of JSON; opcodes 0 Handshake, 1 Frame, 2 Close, 3 Ping, 4 Pong; max frame 64 KiB; handshake JSON is {"v":1,"client_id":"<app id>"}; READY arrives as cmd DISPATCH, evt READY." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Discord RPC" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "MessageFrameHeader" |
|---|
| size | 8 |
|---|
| fields | | name | "opcode" |
|---|
| type | "uint32" |
|---|
| offset | 0 |
|---|
| notes | "0 Handshake, 1 Frame, 2 Close, 3 Ping, 4 Pong" |
|---|
|
| name | "length" |
|---|
| type | "uint32" |
|---|
| offset | 4 |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Opcode enum, MessageFrameHeader, MaxRpcFrameSize 64*1024; RpcVersion = 1 in rpc_connection.cpp; handshake in serialization.cpp JsonWriteHandshakeObj" |
|---|
| repo | "https://github.com/discord/discord-rpc" |
|---|
| commit | "963aa9f3e5ce81a4682c6ca3d136cddda614db33" |
|---|
| path | "src/rpc_connection.h" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "IPC frame" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T12:41:11.857Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:04:30.493Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read src/rpc_connection.h at 963aa9f3: enum Opcode Handshake 0, Frame 1, Close 2, Ping 3, Pong 4; MessageFrameHeader {Opcode (uint32_t) opcode; uint32_t length}; MaxRpcFrameSize 64*1024. Byte order is host order in the code (little endian on the supported platforms); handshake JSON not re-read." |
|---|
|
|
|---|