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
公共交通オープンデータ × モバイルUX 複雑な運行情報を 『直感』に変換する技術
tinykitten
PRO
0
200
Denoのセキュリティに関する仕組みの紹介 (toranoana.deno #23)
uki00a
0
280
Apache Iceberg V3 and migration to V3
tomtanaka
0
120
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
360
CSC307 Lecture 03
javiergs
PRO
1
490
.NET Conf 2025 の興味のあるセッ ションを復習した / dotnet conf 2025 quick recap for backend engineer
tomohisa
0
130
そのAIレビュー、レビューしてますか? / Are you reviewing those AI reviews?
rkaga
6
4.4k
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
220
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
180
2026年 エンジニアリング自己学習法
yumechi
0
120
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
430
dchart: charts from deck markup
ajstarks
3
980
Featured
See All Featured
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.9k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
117
100k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.2k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
0
190
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
190
Docker and Python
trallard
47
3.7k
RailsConf 2023
tenderlove
30
1.3k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
910
A designer walks into a library…
pauljervisheath
210
24k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
60
BBQ
matthewcrist
89
10k
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