How does one control the type of received and sent messages over websockets? I want to send and receive either bytes or input/outputstreams of utf-8 text without going through strings.
if I send bytes or streams the websocket message tags it as bytes and the browser client gets a blob instead of a string
(also curious how, if I send/recv strings, the server knows what encoding to use)