We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92c72f0 commit 32afd5bCopy full SHA for 32afd5b
1 file changed
src/room/rpc/client/RpcClientManager.ts
@@ -72,7 +72,10 @@ export default class RpcClientManager extends (EventEmitter as new () => TypedEm
72
const payloadBytes = byteLength(payload);
73
74
// Only enforce the legacy size limit when on rpc v1
75
- if (payloadBytes > MAX_V1_PAYLOAD_BYTES && remoteClientProtocol < 1) {
+ if (
76
+ payloadBytes > MAX_V1_PAYLOAD_BYTES &&
77
+ remoteClientProtocol < CLIENT_PROTOCOL_DATA_STREAM_RPC
78
+ ) {
79
throw RpcError.builtIn('REQUEST_PAYLOAD_TOO_LARGE');
80
}
81
0 commit comments