@@ -91,7 +91,7 @@ public void Connect()
91
91
[ UnityTest ]
92
92
public IEnumerator SendDataFromClient ( ) => UniTask . ToCoroutine ( async ( ) =>
93
93
{
94
- await clientConnection . SendAsync ( new ArraySegment < byte > ( data ) ) ;
94
+ clientConnection . Send ( new ArraySegment < byte > ( data ) ) ;
95
95
96
96
var buffer = new MemoryStream ( ) ;
97
97
await serverConnection . ReceiveAsync ( buffer ) ;
@@ -102,7 +102,7 @@ public IEnumerator SendDataFromClient() => UniTask.ToCoroutine(async () =>
102
102
[ UnityTest ]
103
103
public IEnumerator SendDataFromServer ( ) => UniTask . ToCoroutine ( async ( ) =>
104
104
{
105
- await serverConnection . SendAsync ( new ArraySegment < byte > ( data ) ) ;
105
+ serverConnection . Send ( new ArraySegment < byte > ( data ) ) ;
106
106
107
107
var buffer = new MemoryStream ( ) ;
108
108
await clientConnection . ReceiveAsync ( buffer ) ;
@@ -115,7 +115,7 @@ public IEnumerator ReceivedBytes() => UniTask.ToCoroutine(async () =>
115
115
long received = transport . ReceivedBytes ;
116
116
Assert . That ( received , Is . GreaterThan ( 0 ) , "Must have received some bytes to establish the connection" ) ;
117
117
118
- await clientConnection . SendAsync ( new ArraySegment < byte > ( data ) ) ;
118
+ clientConnection . Send ( new ArraySegment < byte > ( data ) ) ;
119
119
120
120
var buffer = new MemoryStream ( ) ;
121
121
await serverConnection . ReceiveAsync ( buffer ) ;
@@ -130,7 +130,7 @@ public IEnumerator SentBytes() => UniTask.ToCoroutine(async () =>
130
130
long sent = transport . SentBytes ;
131
131
Assert . That ( sent , Is . GreaterThan ( 0 ) , "Must have received some bytes to establish the connection" ) ;
132
132
133
- await serverConnection . SendAsync ( new ArraySegment < byte > ( data ) ) ;
133
+ serverConnection . Send ( new ArraySegment < byte > ( data ) ) ;
134
134
135
135
var buffer = new MemoryStream ( ) ;
136
136
await clientConnection . ReceiveAsync ( buffer ) ;
@@ -142,7 +142,7 @@ public IEnumerator SentBytes() => UniTask.ToCoroutine(async () =>
142
142
[ UnityTest ]
143
143
public IEnumerator SendUnreliableDataFromServer ( ) => UniTask . ToCoroutine ( async ( ) =>
144
144
{
145
- await serverConnection . SendAsync ( new ArraySegment < byte > ( data ) , Channel . Unreliable ) ;
145
+ serverConnection . Send ( new ArraySegment < byte > ( data ) , Channel . Unreliable ) ;
146
146
147
147
var buffer = new MemoryStream ( ) ;
148
148
int channel = await clientConnection . ReceiveAsync ( buffer ) ;
@@ -153,7 +153,7 @@ public IEnumerator SendUnreliableDataFromServer() => UniTask.ToCoroutine(async (
153
153
[ UnityTest ]
154
154
public IEnumerator SendUnreliableDataFromClient ( ) => UniTask . ToCoroutine ( async ( ) =>
155
155
{
156
- await clientConnection . SendAsync ( new ArraySegment < byte > ( data ) , Channel . Unreliable ) ;
156
+ clientConnection . Send ( new ArraySegment < byte > ( data ) , Channel . Unreliable ) ;
157
157
158
158
var buffer = new MemoryStream ( ) ;
159
159
int channel = await serverConnection . ReceiveAsync ( buffer ) ;
0 commit comments