Score:0

haproxy between http-only client and websockets only backend

bf flag

odd request maybe, but I have a need to proxy between a HTTP-only client and a WebSocket-only server. these are not long-lived connections; the client does a POST with some binary data that needs to be forwarded to the ws:// server and the response back to the client. session done.

Is this possible with haproxy?

Marvin avatar
bf flag
After some more research I don't believe haproxy can do this without maybe resorting to LUA scripting. I'm going to write something in python instead.
John Mahowald avatar
cn flag
Please answer your own question, rather than commenting. Longer length limit to cite your research, and better tracking that you got an answer.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.