4.1.0
版本发布时间: 2021-02-02 10:50:27
Cysharp/MagicOnion最新发布版本:6.1.4(2024-07-17 15:51:31)
Changes
Breaking changes
MagicOnion.Client (StreamingHubClient) versioning
MagicOnion.Client (4.1.x or later) is not compatible with MagicOnion.Server v4.0.x or ealier.
MagicOnion.Client 4.0.x or earlier + MagicOnion.Server v4.1 is still compatible.
Client 4.0.x | Client 4.1.x | |
---|---|---|
Server 4.0.x | ✓ | Not Compatible |
Server 4.1.x | ✓ | ✓ |
Introduce StreamingHubClient.ConnectAsync
Added ConnectAsync
method to wait for StreamingHub connection establishment. ConnectAsync
will be able to catch errors while trying to connect.
For example, if the channel has not been established, or if there is an authentication error.
try
{
var client = await StreamingHubClient.ConnectAsync<Hub, HubReceiver>(channel, this);
// Do stuff...
}
catch (RpcException ex)
{
// An error occurred while connecting to the server.
}
NOTE:
StreamingHubClient.Connect
is marked as deprecated. UseConnectAsync
instead.
Improvements
- Update NuGet packages #402
- Bump minimum unity version to 2018.4.13f1+ #401
- Add package.json to MagicOnion.Client.Unity #400
- Better StreamingHubCilent Errors #393
Fixes
- Ignore OperationCanceledException thrown when a client disconnects. #403
- Fix asmdef missing MessagePack.Annotations #400
1、 MagicOnion.Client.Unity.unitypackage 151.29KB
2、 moc.4.1.0.zip 65.27MB