The mearning of <script>p(-1,"");</script>

7 views
Skip to first unread message

yccheok

unread,
May 29, 2009, 4:11:28 AM5/29/09
to meteorserver
Hello,

May I know what is the meaning of

<script>p(-1,"");</script>

sent out by meteor.

This is because we get a satisfaction streaming result within our
local environment. However, when we deploy the result to live, we
found that the streaming result is extremely slow. (10 seconds per
data, where local only take 1 seconds per data).

One of the reasons is that, in live site, meteor send out a lot of

<script>p(-1,"");</script>

message where we didn't see these message in our local server.

May I know what is the purpose of <script>p(-1,"");</script>?

Thanks!
Cheok

Jose Mico

unread,
May 29, 2009, 10:10:16 AM5/29/09
to meteorserver
That is the "ping" message.
You can set a higher PingInterval in order to send pings less often
(and so less of them).
José.

Douglas Bischoff

unread,
Jul 19, 2009, 5:05:28 PM7/19/09
to meteorserver
What if your intent wasn't polling but streaming? The system seems to
automatically switch from stream.html to poll.html under mysterious
circumstances. Is this normal?

-Doug

Andrew Betts

unread,
Jul 19, 2009, 5:38:57 PM7/19/09
to meteorserver
Doug,

It's configurable, but by default Meteor will switch to polling if it
fails to receive ping messages on the streaming connection.
Reply all
Reply to author
Forward
0 new messages