It is definitely possible for applications in multiple jobs to talk to each other. This is an example job, that talks to your WebSocket application using the Nomad Service Discovery option.
Adding to the answer given from @Ranjandas, this is absolutely possible. The service discovery networking page is a good starting point for understanding what is possible and how to get started.