| … | … | @@ -15,8 +15,24 @@ A Godot plugin and example project for loading assets from the [hypercore-protoc |
| 15 | 15 | |
| 16 | 16 | ### How to communicate over UNIX sockets |
| 17 | 17 | |
| 18 | - StreamPeer seems to [imply UNIX sockets are supported](https://docs.godotengine.org/en/stable/classes/class_streampeer.html#description) |
| 19 | - Looks like it isn't actually supported: https://github.com/godotengine/godot/issues/48862 |
| 20 | - Also no support for windows sockets |
| 21 | - Could implement, or go with something else. |
| 22 | |
| 18 | 23 | ### How to spawn the daemon |
| 19 | 24 | |
| 25 | - Bundle daemon binaries with the project |
| 26 | - Use [OS.execute](https://docs.godotengine.org/en/stable/classes/class_os.html#class-os-method-execute) with non-blocking mode enabled. |
| 27 | - Ensure the process is killed before exiting? |
| 28 | |
| 29 | ### How to interface with resource loader |
| 30 | |
| 31 | - Would need to recompile godot to support protocols other than `res://` |
| 32 | - Right now it renames `res://` to the resource_path |
| 33 | - Then treats it like a regular file to load |
| 34 | - Would need to instead add a set of protocols to load resources from (including hyper) |
| 35 | |
| 20 | 36 | ## Supported APIs: |
| 21 | 37 | |
| 22 | 38 | ```JavaScript |