You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open a websocket connection to the API endpoint, and use the auth.sesion and stream.follow methods to create a stream of location updates from all friends.
The response to the stream.follow method (note the id associates the response to the request) is
a "stream id", a list of friends, and a mapping of user_id to username.
For each friend on your list, the most recent point will be sent immediately. For as long as the websocket is held open, new updates will be delivered as they are received. Location updates are part of the 'stream' and use an id field of the stream_id returned earlier.