Closed CarolineBoyer closed 4 years ago
Unfortunately, no community resources were available to help resolve this issue after two weeks, and it is being closed. We close unresolved community issues to keep the issue tracker organized and effective. Please check https://hapi.dev/support for other support options.
Support plan
Context
How can we help?
This might be a stupid question but I fail to see how I can use hapi/nes pub/sub with the publish being in a diffrent file from the server.start. (something like https://stackoverflow.com/questions/27766623/how-to-store-routes-in-separate-files-when-using-hapi ) but for accessing the server from a different file,
Server.js
the place where I would like to access to publish is in another file as I need to publish to /livechat/{conversationId} only when that module is being used by and getting data.
Basically that would be
LiveChatInitialize