jublo / codebird-php

Easy access to the Twitter REST API, Direct Messages API, Account Activity API, TON (Object Nest) API and Twitter Ads API — all from one PHP library.
https://www.jublo.net/projects/codebird/php
GNU General Public License v3.0
777 stars 235 forks source link

how to break streaming api #210

Closed prafullwizorbit closed 6 years ago

prafullwizorbit commented 6 years ago

How to break streaming api when response time is more then 1 minute and also its display blank page when we load again.

mynetx commented 6 years ago

@prafullwizorbit You should be able to set a timeout for the streaming API using setTimeout. In addition, your callback will receive empty messages if no events occur, and you should make your function return true; in order to cancel the stream.

mynetx commented 6 years ago

Adding a section on this to the README.