mwhitworth

mwhitworth

Reverse_proxy_plug_websocket - websocket proxying in Elixir

I’m excited to share reverse_proxy_plug_websocket, a library for reverse proxying websocket connections in Elixir.

This idea grew out of several tickets filed on the reverse_proxy_plug project around a need to support websockets. This library handles the complexity of:

  • Detecting WebSocket upgrade requests

  • Establishing connections to upstream WebSocket servers

  • Maintaining bidirectional message flow between clients and upstream

  • Managing connection lifecycle and cleanup

It supports Gun and Websockex as adapters for the actual websocket functionality.

Proxying in a language like Elixir allows for dynamic runtime behaviour, described in the README, and (hopefully soon) the ability to rewrite or instrument the data stream itself, as required.

Feedback most welcome!

Links

https://github.com/mwhitworth/reverse_proxy_plug

Most Liked

mwhitworth

mwhitworth

I’ve now released 0.2.0, which features the ability to intercept, modify or drop WebSocket frames in either direction - see this section in the README.

Where Next?

Popular in Announcing Top

grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 54260 488
New
danschultzer
In short Plug n’ play OAuth 2.0 provider library. Just set up a resource owner schema with Ecto (your user schema), install the dependen...
New
bryanjos
Hi, I wanted share a small library we at Revelry Labs made for rendering react components from the server side. There are instructions fo...
New
sasajuric
I’d like to announce a small library called boundaries. This is an experimental project which explores the idea of enforcing boundaries ...
New
mathieuprog
Hello :waving_hand: Allow me to introduce you to Tz, an alternative time zone database support to Tzdata. Why another library? First a...
New
type1fool
WebAuthnLiveComponent WebAuthnComponents See this post about renaming the package. Passwordless authentication for Phoenix LiveView app...
New
bluzky
You may know https://ui.shadcn.com/, a UI component library for React. I really love it’s design style and components. I’ve built some co...
384 14721 119
New

Other popular topics Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

We're in Beta

About us Mission Statement