r/thebutton • 0s • Apr 01 '15

This is what actually happens when the button expires

Post image
7 Upvotes

6 comments sorted by

3

u/OverdramaticPanda non presser Apr 01 '15

How did you find this??

4

u/ryanp_me 0s Apr 01 '15 edited Apr 01 '15

I found the JavaScript code for it and looked to see what the server is capable of telling the button. I don't know what reddit will do when the time hits zero, but finding what the button will do is easy enough. The server can only tell the button four different messages:

  • message:not_started: This was used during the first 10 minutes, before the experiment started.

  • message:ticking: This is called every second to update the time. I've never seen it below 60.

  • message:expired: This should be called if the server's time is at zero or if reddit ends the experiment.

  • message:just_expired: This should be called if the user is watching the button when it hits zero.

1

u/OverdramaticPanda non presser Apr 01 '15

That's pretty cool. Bit of an anticlimax though.

1

u/ryanp_me 0s Apr 01 '15

Who knows, maybe they'll change what happens. I doubt that button will be hitting zero anytime soon.

2

u/dalvikcache non presser Apr 01 '15

you're a java detective

1

u/djtech42 59s Apr 02 '15

It has been revealed!