Heya, I'm using Nim for a Minecraft Java Edition server implementation, and in the project I am using a plugin system using shared libraries. The issue I am encountering right now, is that when calling await socket.send("myString") within a shared library, no data is actually sent to the connected client, but data can still be read.
The minimal reproducible code is in this link: https://play.nim-lang.org/#ix=4pD0
Multiple files are put into one link and are using comments for showing what part of the code is in a new file. I am using Nim devel, git hash https://play.nim-lang.org/#ix=4pD0. If anyone knows how I could get around this without rewriting the way my plugin system works in a major way, please let me know!
I wrote a plugin system because my server impl is going with the ideal of 'keep everything as minimal as possible', so networking for X.Y.Z version in their own plugins, combat systems implemented in their own plugin... Etc
I mainly wanted something that could be split up and have components easy to omit
And the way I've written it will (in theory) let me add support for scripting languages instead of just Nim
(If you want to see how I structured the current system without any additional code, https://github.com/Yu-Vitaqua-fer-Chronos/NimPluginSystem )