When the [a?] client application connects to the server, the [its?] server-side (main.asc) onConnect function does several things: First it increments a counter variable (application.cou0) that tracks the number of clients connected to the server. Next
the server-side script (main.asc) uses this variable as a unique reference to the connected application instance.
? Chess consider clarification ]
the onConnect [no paren above so presume you don't need it here either] function starts the server-side Ping function (serverPing). Notice that this interval
[What interval?, not clear] is inside an "if"
statement which after executing once
will disable itself. This coding prevents
a new interval starting
[not sure it's needed] every time a user connects, [an unnecessary accessory? attachment? procedure? routine?] that would otherwise cause unwanted memory use on [of? by?] the server.
Forgive me Calm if I'm off base here and there, I'm guessing, it's all Chinese to me. Maybe we'll get further response from someone versed in the digital arts