Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with Arcor2.ClientSdk.Communication library #258

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

YanehCheck
Copy link

Introduction

The library mostly replaces the WebSocketManager class, which has been renamed to CommunicationManager and now holds the library client. I decided to retain its responsibility of invoking other Manager's methods on events, similarly to the previous architecture.

The library also eliminates the need for the NativeWebSockets package, which has as such been removed from the git submodules.

Inclusion of the Library

The library is included by referencing an assembly file (similar to the now-removed OpenApi model assembly). I chose this approach to avoid adding an extra third-party dependency for some implementation of NuGet package manager for Unity. Newer versions of the assembly file will later be automatically generated through the CD/CI pipeline on the library repository, making updates as simple as replacing the assembly file.

Conversion of Existing Code

Most changes listed in the diff are mainly renames. Code that previously expected methods with a callback parameter has been updated to use asynchronous methods or Task continuations. A dispatcher object was added, as all events from the library are generated on a non-main thread.

Testing

Each action that involves communication with the ARCOR2 server has been manually tested, and everything seems to behave as expected.

Let me know if I should change or further update anything!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant