I have created a basic chat app in golang . I have server code and client code . I want to now include the publish subscribe messaging pattern in the chat app I have already created. How do I do that ? My original chat app does not use websockets . It is a very basic application. If needed , I’ll share my existing code as well.
This is a very broad question. I guess I would start by switching your app over to using websockets or something similar. For an example, you could check out this proof of concept I wrote and I bet you could repurpose some of the code in there. I used github.com/gorilla/websocket which has great documentation and examples. Now that I think about it, they have a chat example that might be of use to you.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.