0.2.2 • Published 9 years ago

lpio-spec v0.2.2

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

Protocol and API spec.

LPIO is using http long polling technic to achieve bidirectional communication between server and client. Http polling has some advantages against websockets and co. and is still the best choice for chat-like applications.

Advantages:

  • Some companies have firewalls that will prevent WebSockets from working.
  • If you are deploying software in a shared hosting environment, you may not be permitted to use WebSockets.
  • If you are behind a reverse proxy that isn’t configured or the software doesn’t support pass-through of WebSocket protocol, WebSockets won’t work.

Consider also:

  • WebSockets loose their advantage when client has a weak internet connection and reconnects often.
  • Keepalive allows us to have a persistent connection on the TCP level.
  • Upgrade or downgrade to websockets or any other transports is error prone.

Protocol

Protocol

Client API

Client API

Reference client implementation in javascript

Server API

Server API

Reference server implementation in node

Multiplexer API

Is identical for the server and client.

Multiplexer API

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago