Skip to content

Commit

Permalink
Added IsConnected function (#9)
Browse files Browse the repository at this point in the history
Co-authored-by: John Detter <[email protected]>
  • Loading branch information
jdetter and John Detter authored Oct 14, 2023
1 parent 55dab9b commit df2c648
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Scripts/SpacetimeDBClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,8 @@ T[] LogAndThrow(string error)
return results;
}

public bool IsConnected() => webSocket != null && webSocket.IsConnected;

public void Update()
{
webSocket.Update();
Expand Down

0 comments on commit df2c648

Please sign in to comment.