2. Protocol Services

Below is a summary of the Pushlet protocol services.

Service
Description
join
Start a Pushlet session
leave
Stop a Pushlet session
subscribe
Subscribe to one or more subjects
unsubscribe
Unsubscribe from one or more or all subjects
listen
Open data channel and starts data streaming in one of three modes: stream, pull or poll. In pull or poll mode the server may provide so called refresh indications that the client should refresh this data stream request
join-listen
One-request service to immediately join, subscribe and start streaming data events. After this service the state is similar as after listen. Simple and RESTful clients may use this one-shot service.
publish
Publish data event to be dispatched by the server. Clients may use this service to multicast or unicast events through the server.
heartbeat
Indicate peer is alive