I am working on an assignment for school, and I have decided to make a chat application using Electron and NodeJS. All of the GUI is programmed, except for the server-side of things. My plan was to have two servers, where each would act as its own client AND server, only communicating with each other to send messages.

How would I get each server to communicate using POST requests? Does anybody know any fully functioning npm modules that can be used for this?