MyGit

4.1.0

Cysharp/MagicOnion

版本发布时间: 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. Use ConnectAsync instead.

Improvements

Fixes

相关地址:原始地址 下载(tar) 下载(zip)

1、 MagicOnion.Client.Unity.unitypackage 151.29KB

2、 moc.4.1.0.zip 65.27MB

查看:2021-02-02发行的版本