Skip to content

Ver.4.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 02 Feb 02:50
57ae44c

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

  • 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