Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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
Agents on Rails - Rails at Scale 2026
irinanazarova
0
270
海上で動くGoサーバー: goroutineとchannelでさばく航行データストリーム
atsuki_seo
0
960
新卒PdEのリアル
ryu1013
1
520
カツオ、ご期待ください
suneo3476
0
110
Java 27新機能 / Java 27 new features
kishida
2
170
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
440
TiDB Cloudのカスタムコントローラーによるオートスケール対応
takaidohigasi
0
140
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
830
モデルのリファクタリングが難しいと思ったら、そもそも複雑だったのはビジネス仕様だった ? / is-the-business-domain-the-real-complexity
hatsu38
0
410
MVNOの申込からeSIM開通までをiOSアプリでつなぐ- 本人確認・MNP・通信事業者基盤をまたぐ実装
satotakeshi
0
490
Workers Cache を知る
syumai
0
290
Security issues being discussed on Web Platforms
petamoriken
0
1.2k
Featured
See All Featured
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
700
Statistics for Hackers
jakevdp
799
230k
Skip the Path - Find Your Career Trail
mkilby
1
240
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
880
Bash Introduction
62gerente
615
220k
First, design no harm
axbom
PRO
2
1.3k
The Limits of Empathy - UXLibs8
cassininazir
1
690
エンジニアに許された特別な時間の終わり
watany
109
250k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
440
Designing Experiences People Love
moore
143
24k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
530
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