00:00
00:00
Newgrounds Background Image Theme

DoctorSpectre just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Newgrounds Wiki: Gateway

Description Provides information about the gateway server.

Gateway.getDatetime

Loads the current date and time from the Newgrounds.io server.

Returns:

datetime - string
The server's date and time in ISO 8601 format.

timestamp - int
The current UNIX timestamp on the server.

Gateway.getVersion

Returns the current version of the Newgrounds.io gateway.

Returns:

version - string
The version number (in X.Y.Z format).

Gateway.ping

Pings the Newgrounds.io server.

Returns:

pong - string
Will always return a value of 'pong'