frameByteLength(data: string | Uint8Array): number
Measures an inbound frame in bytes.
Text frames are measured by their UTF-8 encoding rather than their string length, so a multi-byte payload is not undercounted against the limit.
data: string | Uint8Array
The frame