Access storage Module in Custom Node


is it possible to access functions from a custom storageModule I provided in a customNode?

So lets say if I have a websocket Connection already open in my storage module could i use that same connection in a custom node.

I just would need like a pipe through of the storageModule-Object from the settingsFile to the custom node editor.


Kilian Hertel

So. I did find a solution. You can make a package out of your storage module and then import that in your custom node. I didn't know nodejs persists once loaded packages you require multiple times. Then just require the storage class in the custom node and it works.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.