Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support text frame #5

Open
mtsmfm opened this issue Jan 21, 2023 · 2 comments · May be fixed by #15
Open

Support text frame #5

mtsmfm opened this issue Jan 21, 2023 · 2 comments · May be fixed by #15

Comments

@mtsmfm
Copy link

mtsmfm commented Jan 21, 2023

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?

@James-Frowen
Copy link
Owner

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
Copy link
Author

mtsmfm commented Jan 22, 2023

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.

@James-Frowen James-Frowen linked a pull request Sep 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants