$30 off During Our Annual Pro Sale. View Details »
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
大体よく分かるscala.collection.immutable.HashMap ~ Compressed Hash-Array Mapped Prefix-tree (CHAMP) ~
matsu_chara
2
220
複数人でのCLI/Infrastructure as Codeの暮らしを良くする
shmokmt
5
2.3k
ID管理機能開発の裏側 高速にSaaS連携を実現したチームのAI活用編
atzzcokek
0
230
20 years of Symfony, what's next?
fabpot
2
360
How Software Deployment tools have changed in the past 20 years
geshan
0
29k
JETLS.jl ─ A New Language Server for Julia
abap34
1
400
Github Copilotのチャット履歴ビューワーを作りました~WPF、dotnet10もあるよ~ #clrh111
katsuyuzu
0
110
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
150
生成AIを利用するだけでなく、投資できる組織へ
pospome
2
330
これならできる!個人開発のすゝめ
tinykitten
PRO
0
100
안드로이드 9년차 개발자, 프론트엔드 주니어로 커리어 리셋하기
maryang
1
110
WebRTC と Rust と8K 60fps
tnoho
2
2k
Featured
See All Featured
Building an army of robots
kneath
306
46k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
730
Site-Speed That Sticks
csswizardry
13
1k
Writing Fast Ruby
sferik
630
62k
Git: the NoSQL Database
bkeepers
PRO
432
66k
Designing for humans not robots
tammielis
254
26k
Java REST API Framework Comparison - PWX 2021
mraible
34
9k
Practical Orchestrator
shlominoach
190
11k
We Have a Design System, Now What?
morganepeng
54
7.9k
Building Flexible Design Systems
yeseniaperezcruz
330
39k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.2k
Optimizing for Happiness
mojombo
379
70k
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