Websocket closes connection if payload is greater than 4096 bytes

I’m trying to use the Websocket interface for both subscriptions and normal queries as well as mutations. So far, everything went well (apart from some duplicated “complete” messages that I have to skip over for now).

But now, I’m testing my app with real-world payloads and it hangs regularely. The root cause seems to be that whenever DGraph receives a message over its WebSocket that is greater than 4096 bytes, it immediately responds with opcode 8, which closes the connection.

I’m using the 20.11 release.

Looks like bug, accepting it.