In order to allow for #1 the service should be broken into a client and a server.
The Client would run on a user's Mac to communicate with the Messages app and the server would be responsible for managing proxy numbers, receiving web hooks, etc.
A web socket connection would likely be a good communication mechanism between clients and servers that would also remove the need for a tool like ngrok.
In order to allow for #1 the service should be broken into a client and a server.
The Client would run on a user's Mac to communicate with the Messages app and the server would be responsible for managing proxy numbers, receiving web hooks, etc.
A web socket connection would likely be a good communication mechanism between clients and servers that would also remove the need for a tool like ngrok.