Merge PR #5003: fix WebSocket cannot send/receive more than 4096 bytes of data

Merge PR #5003