Seperate gateway process

Is there a way to seperate the gateway/websocket process? I want to have a separate process for the websocket and bot, so I can restart the bot with no event loss (communication between processes using e.g. redis) Aware of discordeno, bit too advanced/complicated for my use (1 server)
3 Replies
d.js toolkit
d.js toolkit3w ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
monbrey
monbrey3w ago
npm
@discordjs/ws
Wrapper around Discord's gateway. Latest version: 2.0.1, last published: 3 months ago. Start using @discordjs/ws in your project by running npm i @discordjs/ws. There are 24 other projects in the npm registry using @discordjs/ws.
monbrey
monbrey3w ago
@discordjs/core, /ws, /rest etc All the individual modules

Did you find this page helpful?