Skip to content

Instantly share code, notes, and snippets.

@ruichuang
Created March 10, 2017 15:34
Show Gist options
  • Select an option

  • Save ruichuang/411d791e0b386d3281019b2e2bfcabd3 to your computer and use it in GitHub Desktop.

Select an option

Save ruichuang/411d791e0b386d3281019b2e2bfcabd3 to your computer and use it in GitHub Desktop.
The websocket communication relies on the client-server logic, where a persistent connection between a server
and a client always exists.
the server opens a dedicated port where clients get connected. once happens, all connected app can send outgoing message to port and listen
to it for incoming message without additional requset.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment