You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
mikerochip
changed the title
Alternative that doesn't require async/await
Alternative that doesn't require async/await or #ifApr 13, 2024
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
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!
The text was updated successfully, but these errors were encountered: