Skip to content

Commit

Permalink
Use native websockets for everything
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexejhero committed Dec 17, 2024
1 parent 5d4d9e5 commit 4429d8c
Show file tree
Hide file tree
Showing 11 changed files with 106 additions and 246 deletions.
2 changes: 1 addition & 1 deletion Unity/Assets/Actions/NeuroActionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public sealed class NeuroActionHandler : MonoBehaviour

private void OnApplicationQuit()
{
WebsocketConnection.SendImmediate(new ActionsUnregister(_currentlyRegisteredActions));
WebsocketConnection.TrySendImmediate(new ActionsUnregister(_currentlyRegisteredActions));
_currentlyRegisteredActions = null!;
}

Expand Down
4 changes: 2 additions & 2 deletions Unity/Assets/Examples/NeuroSdk.Examples.asmdef
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "NeuroSdk.Examples",
"rootNamespace": "",
"rootNamespace": "NeuroSdk",
"references": [
"GUID:2fea756a1bd543946a401b107e3a5e95",
"GUID:f51ebe6a0ceec4240a699833d6309b23"
Expand All @@ -16,4 +16,4 @@
],
"versionDefines": [],
"noEngineReferences": false
}
}
7 changes: 3 additions & 4 deletions Unity/Assets/NeuroSdk.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
"name": "NeuroSdk",
"rootNamespace": "NeuroSdk",
"references": [
"GUID:f51ebe6a0ceec4240a699833d6309b23",
"GUID:04376767bc1f3b428aefa3d20743e819"
"GUID:04376767bc1f3b428aefa3d20743e819",
"GUID:f51ebe6a0ceec4240a699833d6309b23"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [
"Newtonsoft.Json.dll",
"websocket-sharp.dll"
"Newtonsoft.Json.dll"
],
"autoReferenced": true,
"defineConstraints": [],
Expand Down
8 changes: 0 additions & 8 deletions Unity/Assets/Plugins.meta

This file was deleted.

Binary file removed Unity/Assets/Plugins/websocket-sharp.dll
Binary file not shown.
70 changes: 0 additions & 70 deletions Unity/Assets/Plugins/websocket-sharp.dll.meta

This file was deleted.

Loading

0 comments on commit 4429d8c

Please sign in to comment.