Closed misaelabanto closed 9 months ago
In our API we define the websocket plugin as the last thing before .listen() and it works correctly, do you have the latest version of Elysia? Also, I believe Discord would be a more appropriate channel to ask this kind of questions! 🙂
All right! I will try the very new version and, if it does not work, I will ask the question on Discord. Thank you
I have a plugin for handle all requests to /votes endpoint:
This is my ws plugin:
The result from
votes.server?.publish('party', 'vote');
is alwaysundefined
. How can I reference the app defined inindex.ts
from my plugin?