0

I'm currently using nginx to reverse proxy a websocket based application. Can I enable caching websocket messages to make the application available when service behind is down? I know caching is possible for HTTP requests as documented here. Is there any way I can achieve this without writing my own caching layer from scratch?

TRiNE
  • 103
  • 3

1 Answers1

3

There's no such thing as websocket caching. Websocket is simply a messaging protocol. It transmits arbitrary messages back and forth.

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
  • thank you for answering. In my case a token is used to match requests and response. I accept your answer; since websocket is generally used for full duplex communication, this requirement may not have high demand right now. – TRiNE Sep 05 '18 at 05:08