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
140
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Build a Websocket Tunnel in Elixir
Hemslo
September 05, 2018
More Decks by Hemslo
See All by Hemslo
Introduction to Elixir
hemslo
0
450
Other Decks in Programming
See All in Programming
肥大化するレガシーコードに立ち向かうためのインターフェース分離と依存の逆転 / JJUG CCC 2026 Spring
hirokunimaeta
0
570
The ROI of Quarkus for Spring Boot Applications
hollycummins
0
120
キャリア迷子上等 ─ "ない道"は自分で作ればいい
16bitidol
3
2.1k
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.6k
ECSアプリログをFireLensでコスト削減しようとしたけど諦めた話 in Fargate×Node.js
akihisaikeda
2
4.2k
Oxlintのカスタムルールの現況
syumai
6
1.1k
ローカルLLMを使ってB2Bサービスを作っていての学び
yaotti
0
180
JavaDoc 再入門
nagise
1
360
技術記事、 専門家としてのプログラマ、 言語化
mizchi
13
6.1k
依存関係から依存物へ―Dependencyという言葉の歴史をひも解く
j_lee
0
120
さぁV100、メモリをお食べ・・・
nilpe
0
140
TSKaigi Night Talks 2026_TypeScriptでサプライチェーンの整合性を型に閉じ込める
geekplus_tech
0
350
Featured
See All Featured
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
140
Design in an AI World
tapps
1
240
Accessibility Awareness
sabderemane
1
140
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
200
HDC tutorial
michielstock
2
720
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.9k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
270
Designing Powerful Visuals for Engaging Learning
tmiket
1
420
Heart Work Chapter 1 - Part 1
lfama
PRO
7
36k
Raft: Consensus for Rubyists
vanstee
141
7.5k
BBQ
matthewcrist
89
10k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
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