Explicit dependencies
I spent the whole morning trying to figure out why pio couldn't find the NetworkClientSecure dependency that websocket needed. Eventually I discovered that pio was looking for dependencies for the entire project through a python preprocessor, great idea, but very annoying when you don't know. I ended up explicitly adding the NetworkClientSecure dependency to lib_deps in platformio.ini.
lib_deps =
WiFi
Networking
NetworkClientSecure
links2004/WebSockets@^2.5.3
...
Can you add a description field to the websocket library.json to explicitly specify the dependency? I tried a few things, but description and lib_deps seem to behave differently
The problem with that idea is that different boards need different libraries, as a result its not possible to hard code any. since adding one will break all the other boards.