Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Build a Websocket Tunnel in Elixir
Search
Hemslo
September 05, 2018
Programming
1
130
Build a Websocket Tunnel in Elixir
Hemslo
September 05, 2018
Tweet
Share
More Decks by Hemslo
See All by Hemslo
Introduction to Elixir
hemslo
0
440
Other Decks in Programming
See All in Programming
ロボットのための工場に灯りは要らない
watany
12
3.2k
条件判定に名前、つけてますか? #phperkaigi #c
77web
2
780
Understanding Apache Lucene - More than just full-text search
spinscale
0
140
Redox OS でのネームスペース管理と chroot の実現
isanethen
0
430
20260228_JAWS_Beginner_Kansai
takuyay0ne
5
610
maplibre-gl-layers - 地図に移動体たくさん表示したい
kekyo
PRO
0
470
Nostalgia Meets Technology: Super Mario with TypeScript
manfredsteyer
PRO
0
110
The free-lunch guide to idea circularity
hollycummins
0
340
PHP 7.4でもOpenTelemetryゼロコード計装がしたい! / PHPerKaigi 2026
arthur1
1
390
PHP でエミュレータを自作して Ubuntu を動かそう
m3m0r7
PRO
2
140
仕様漏れ実装漏れをなくすトレーサビリティAI基盤のご紹介
orgachem
PRO
7
3.1k
CSC307 Lecture 15
javiergs
PRO
0
260
Featured
See All Featured
Darren the Foodie - Storyboard
khoart
PRO
3
3k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
360
Designing Experiences People Love
moore
143
24k
AI: The stuff that nobody shows you
jnunemaker
PRO
3
480
Google's AI Overviews - The New Search
badams
0
940
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
64
54k
Done Done
chrislema
186
16k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Being A Developer After 40
akosma
91
590k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
120
Transcript
Build a Websocket Tunnel - Wang, Di @hemslo
Tunnel
Websocket
Hello World: Echo Server Task and gen_tcp
Glance SRC --- Client -websocket tunnel- Server --- Forwarder ---
DEST
Forwarder Connect to destination host:port When data received from source,
send to destination When data received from destination, send to source Code
Websocket Server Cowboy Phoenix.Endpoint.CowboyWebSocket Phoenix.Transports.WebSocket Code
Websocket Client websocket_client ranch Code
SOCKS Proxy SOCKS Dante ssh -D
TLS: WSS No Coding, don’t invent your own encryption algorithm,
use TLS. SRC --- Client -wss- Nginx -ws- Server --- Forwarder --- DEST
Future Error handle and connection close Use Cowboy 2 Documentation
Wider usage
Q&A