Issue with @SubscribeMessage events on NestJS server on Render

Hi,

I have a NestJS server running successfully on Render. I can connect to WebSocket without any issues. However, when I try to send an event via the client using @SubscribeMessage (a method that subscribes to messages), nothing happens on the server when it’s running on Render. This same logic works correctly on my local environment.

Details:

  • I’m using @SubscribeMessage to handle WebSocket events in NestJS.
  • The WebSocket connection works fine both on the client and server.
  • The issue arises when sending events from the client when the server is deployed on Render. The client doesn’t receive a response to the events.
  • Everything works fine when the server is running locally.

Are there any specific configurations or limitations on Render that might affect @SubscribeMessage functionality? I would appreciate any help with configuring this.

Thanks!