tulir / whatsmeow

Go library for the WhatsApp web multidevice API
https://go.mau.fi/whatsmeow
Mozilla Public License 2.0
2.24k stars 418 forks source link

How can i support multiple session with a single go server #255

Closed RakaiSeto closed 1 year ago

RakaiSeto commented 2 years ago

I want to make an API that runs on a single GO server but can store multiple session

hoehermann commented 2 years ago

Then do it. As far as I know, there is no client-side limitation implemented in whatsmeow. I do something similar in my project purple-whatsmeow.

aldinokemal commented 1 year ago

With multiple sessions, it's hard to add an event handler. I suggest you create one session and then run a second app on another port