Skip to content

Commit

Permalink
com.virtualmaker.rpc 1.0.0-preview.2 (#2)
Browse files Browse the repository at this point in the history
- Added UnityRpcTransportNone
- Made UnityRpcTransportWebsocket public
- Made UnityRpcTransportWebGL public

---------

Co-authored-by: Alon Farchy <[email protected]>
Co-authored-by: Alon Farchy <[email protected]>
  • Loading branch information
3 people authored Jul 12, 2024
1 parent fb1a8bc commit b9befdc
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The recommended installation method is though the unity package manager and [Ope

- Open your Unity project settings
- Select the `Package Manager`
![scoped-registries](images/package-manager-scopes.png)
![scoped-registries](VirtualMaker.RPC/Packages/com.virtualmaker.rpc/Documentation~/images/package-manager-scopes.png)
- Add the OpenUPM package registry:
- Name: `OpenUPM`
- URL: `https://package.openupm.com`
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Licensed under the MIT License. See LICENSE in the project root for license information.

using System.Collections.Concurrent;
using UnityEngine;

namespace VirtualMaker.RPC
{
public class UnityRpcTransportNone : IUnityRpcTransport
{
public ConcurrentQueue<string> ReceiveQueue { get; } = new();

public void SendMessage(string message)
{
}

private void OnMessageInstance(string message)
{
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace VirtualMaker.RPC
{
internal class UnityRpcTransportWebGL : IUnityRpcTransport
public class UnityRpcTransportWebGL : IUnityRpcTransport
{
private static UnityRpcTransportWebGL _instance;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace VirtualMaker.RPC
{
internal class UnityRpcTransportWebsocket : IUnityRpcTransport
public class UnityRpcTransportWebsocket : IUnityRpcTransport
{
public ConcurrentQueue<string> ReceiveQueue { get; } = new();

Expand Down

0 comments on commit b9befdc

Please sign in to comment.