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
Combinatorial Interview Problems with Backtracking Solutions - From Imperative Procedural Programming to Declarative Functional Programming - Part 2
philipschwarz
PRO
0
130
Navigation 3: 적응형 UI를 위한 앱 탐색
fornewid
1
520
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
2k
TerraformとStrands AgentsでAmazon Bedrock AgentCoreのSSO認証付きエージェントを量産しよう!
neruneruo
4
2.3k
re:Invent 2025 トレンドからみる製品開発への AI Agent 活用
yoskoh
0
580
안드로이드 9년차 개발자, 프론트엔드 주니어로 커리어 리셋하기
maryang
1
150
ELYZA_Findy AI Engineering Summit登壇資料_AIコーディング時代に「ちゃんと」やること_toB LLMプロダクト開発舞台裏_20251216
elyza
2
940
Claude Codeの「Compacting Conversation」を体感50%減! CLAUDE.md + 8 Skills で挑むコンテキスト管理術
kmurahama
1
710
Rubyで鍛える仕組み化プロヂュース力
muryoimpl
0
330
[AI Engineering Summit Tokyo 2025] LLMは計画業務のゲームチェンジャーか? 最適化業務における活⽤の可能性と限界
terryu16
2
240
Cap'n Webについて
yusukebe
0
160
gunshi
kazupon
1
140
Featured
See All Featured
Embracing the Ebb and Flow
colly
88
4.9k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
110
Into the Great Unknown - MozCon
thekraken
40
2.2k
ラッコキーワード サービス紹介資料
rakko
0
1.9M
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
120
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
37
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
120
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
65
35k
sira's awesome portfolio website redesign presentation
elsirapls
0
110
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
66
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
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