|
|
|
|
|
by xx_ns
644 days ago
|
|
To be fair, this is exactly what the Accept and Content-Type standard HTTP headers are for. Clients can tell the API "OK, send me application/json data instead of binary data" or vice versa. You can have the majority of your traffic (client traffic) using the binary format, and still support JSON for bot API usage. This is standardized for both WebSockets and HTTP. |
|
Also how much can you realistically win when the payload for small messages where the difference matters are text?