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

Alternative that doesn't require async/await or #if on web #86

Open
mikerochip opened this issue Jun 23, 2023 · 0 comments
Open

Alternative that doesn't require async/await or #if on web #86

mikerochip opened this issue Jun 23, 2023 · 0 comments

Comments

@mikerochip
Copy link

mikerochip commented Jun 23, 2023

Hi there! Thank you @endel for this repo.

I wasn't super keen on being required to use async/await nor having to put #if !UNITY_WEBGL || UNITY_EDITOR in calling code, so I made an alternative repo that lets calling code use whatever the caller wants.

It is available here: https://github.com/mikerochip/unity-websocket

You can poll or use events. Use coroutines, async/await, Update() method. Whatever you want. You can disconnect and reconnect, and since some servers care, text will be sent as text type and byte[] as binary type.

This issue was actually inspired by your own!

@mikerochip mikerochip changed the title Alternative that doesn't require async/await Alternative that doesn't require async/await or #if Apr 13, 2024
@mikerochip mikerochip changed the title Alternative that doesn't require async/await or #if Alternative that doesn't require async/await or #if on web Apr 13, 2024
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

No branches or pull requests

1 participant