James-Frowen / SimpleWebTransport

WebSocket Server and client for unity designed for Mirror Networking
MIT License
62 stars 18 forks source link

Support text frame #5

Open mtsmfm opened 1 year ago

mtsmfm commented 1 year ago

Hi, thank you for providing awesome library.

I noticed this package only supports binary frames.

https://github.com/James-Frowen/SimpleWebTransport/blob/edd76333f2da5f571e7bdb6826244ef2ec2dcbc7/source/Common/SendLoop.cs#L163

Do you have any plan to support text frames?

James-Frowen commented 1 year ago

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.

mtsmfm commented 1 year ago

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.