Be a Supporter!

Browse Sections

Newgrounds Wiki: Gateway

Description Provides information about the gateway server.

Gateway.getDatetime

Return to Top ^Loads the current date and time from the Newgrounds.io server.

Returns:

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

Gateway.getVersion

Return to Top ^Returns the current version of the Newgrounds.io gateway.

Returns:

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

Gateway.ping

Return to Top ^Pings the Newgrounds.io server.

Returns:

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