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

オープン
#86 コメント 0 件 リアクション 6 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
15/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp, unity

調査の方向性

この issue では、NativeWebSocket で変更すべきファイルやエントリーポイントを指定する代わりに、代替リポジトリである unity-websocket が提示されています。まずそのリポジトリと NativeWebSocket を比較し、polling、events、reconnection、message-type の動作をこのプロジェクトに取り込むことを maintainers が望んでいるかを判断してください。この issue では完了の目標が定義されていません。

索引モデルが issue の本文から書いたものです。

説明

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!

主要言語
C#
スター
1.7k
フォーク
206
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

endel/NativeWebSocket のほかの issue

endel/NativeWebSocket の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。