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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
Prismを使った型安全な暗号化_関数型まつり2026
_fhhmm
0
170
5分で問診!Composer セキュリティ健康診断
codmoninc
0
860
freee が目指す データ マネジメント戦略 AI-Ready 時代を支える 攻めのガバナンスとは
freee
PRO
0
260
Claude Opus 4.6以後の受託開発エンジニアの変化(Claude Code開発ノウハウ大公開スペシャルbyクラスメソッド)
iidatakuma
1
970
霧の中の代数的エフェクト
funnyycat
1
460
JAWS-UG横浜 #102 AWSサ終供養LT会 成仏できない AWS サービスたち 〜本日、三体供養します〜
maroon1st
0
310
yield再入門 #phpcon
o0h
PRO
0
940
【やさしく解説 設計編・中級 #6】良いアーキテクチャとは ~ 一本の登り道の、行き先 ~
panda728
PRO
0
210
FDEが実現するAI駆動経営の現在地
gonta
2
260
「寝てても仕事が進む」Claude Codeで組む第二の脳
tomoyafujita2016
0
290
生成AIで帳票OCRが「簡単に」作れる時代になった?
kon_shou
0
460
AI Engineeringは、AIプロダクトだけのものか? 〜AIがソフトウェアを作る時代の新しい当たり前〜 / No AI in your product. AI Engineering in your development.
rkaga
4
370
Featured
See All Featured
AI: The stuff that nobody shows you
jnunemaker
PRO
9
880
Embracing the Ebb and Flow
colly
88
5.1k
Prompt Engineering for Job Search
mfonobong
0
400
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
A better future with KSS
kneath
240
18k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Test your architecture with Archunit
thirion
1
2.3k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.4k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.5k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
470
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
460
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
420
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