Skip to content

Commit

Permalink
Updated from pipeline, Version : 16.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AccelByte-Build committed Jul 25, 2023
1 parent 027462d commit 01d4837
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [16.3.1](https://github.com/AccelByte/accelbyte-unity-sdk/branches/compare/16.3.1%0D16.3.0) (2023-07-25)


### Bug Fixes

* use connect async to avoid blocking game thread ([3d81829](https://github.com/AccelByte/accelbyte-unity-sdk/commits/3d81829c66c11fd2bbecc25661c076da90a755c9))

## [16.3.0](https://github.com/AccelByte/accelbyte-unity-sdk/branches/compare/16.3.0%0D16.2.1) (2023-07-17)


Expand Down
2 changes: 2 additions & 0 deletions Runtime/Core/Websocket/AccelByteWebSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ async void MaintainLoop()
{
switch (webSocket.ReadyState)
{
case WsState.New:
break;
case WsState.Open:
webSocket.Ping();

Expand Down
3 changes: 1 addition & 2 deletions Runtime/Core/Websocket/IWebSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

using System;
using System.Collections.Generic;
using JetBrains.Annotations;

namespace AccelByte.Core {
public delegate void OnOpenHandler();
Expand All @@ -15,7 +14,7 @@ namespace AccelByte.Core {

public delegate void OnCloseHandler(ushort closeCode);

public enum WsState { Connecting, Open, Closing, Closed }
public enum WsState { New, Connecting, Open, Closing, Closed }

public enum WsCloseCode
{
Expand Down
3 changes: 2 additions & 1 deletion Runtime/Core/Websocket/WebSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ public WsState ReadyState
case WebSocketState.Closed: return WsState.Closed;
case WebSocketState.Closing: return WsState.Closing;
case WebSocketState.Connecting: return WsState.Connecting;
case WebSocketState.New: return WsState.New;
default: throw new WebSocketInvalidStateException("Unrecognized websocket ready state.");
}
}
Expand Down Expand Up @@ -496,7 +497,7 @@ public void Connect(string url, string protocols, Dictionary<string, string> cus

try
{
this.webSocket.Connect();
this.webSocket.ConnectAsync();
}
catch (Exception e)
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.accelbyte.unitysdk",
"displayName": "AccelByte Unity SDK",
"version": "16.3.0",
"version": "16.3.1",
"unity": "2020.3",
"description": "Official AccelByte's backend service SDK for Unity game engine",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "16.3.0"
"version": "16.3.1"
}

0 comments on commit 01d4837

Please sign in to comment.