Skip to content

Socket.io

Heesun Kim edited this page Nov 14, 2019 · 7 revisions

Websocket λ¦¬μ„œμΉ˜ (κΈ°μ‘΄ TCPμ™€μ˜ 차이에 집쀑)

Websocket λ¦¬μ„œμΉ˜

socket.io μ•Œμ•„λ³΄κΈ°

socket.io 정리

long polling

  • socket.ioλŠ” λ¨Όμ € long polling λ°©μ‹μœΌλ‘œ client와 serverλ₯Ό μ—°κ²°ν•˜κ³ , κ°€λŠ₯ν•  λ•Œ Websocket μ—°κ²° μš”μ²­μ„ ν•œλ‹€. socket.ioλ₯Ό μ‚¬μš©ν•  λ•Œ transport μ˜΅μ…˜μœΌλ‘œ "websocket"을 μ‚¬μš©ν•˜λ©΄, μ‹€νŒ¨ν–ˆμ„ λ•Œ long polling으둜 연결을 μœ μ§€ν•˜μ§€λ„ μ•ŠλŠ”λ‹€.
  • μ°Έκ³  : https://socket.io/docs/server-api/

socket.io μ±„νŒ… μ‹€μŠ΅

μ°Έκ³ 

Clone this wiki locally