可以在 heroku 上设置 NATS 协议吗?

It's possible to setup NATS protocol on heroku?

我看过很多关于如何在 heroku 上设置 HTTPS 和 Websockets 的文档和教程,但是是否可以设置其他协议,如 TLS 或 NATS?

如果可以,我该怎么做?

很遗憾,没有。

Inbound requests are received by a load balancer that offers SSL termination. From here they are passed directly to a set of routers.

The routers are responsible for determining the location of your application’s web dynos and forwarding the HTTP request to one of these dynos.

https://devcenter.heroku.com/articles/http-routing#routing

Not supported

  • TCP Routing

https://devcenter.heroku.com/articles/http-routing#not-supported

Heroku 仅为托管在其上的应用程序提供 http/https 路由。