James-Frowen/SimpleWebTransport

Support text frame

Opened this issue · 2 comments

Hi, thank you for providing awesome library.

I noticed this package only supports binary frames.

const byte byteOpCode = 2;

Do you have any plan to support text frames?

I dont plan on adding it because this is mostly designed for game data in bytes.

It should be possible to encode the text as bytes in order to send it.

Thank you for giving your thought.

What I'm trying to do with this library is that to connect a API server which accepts only WebSocket text frames and the server is not developed by me.

If both a server and a client developed by single team we can avoid using text frames but in such a case there's no choice.