====== C2S Packet 0: Ping ====== Ping packets provide the connection keep-alive for Sock Chat. The client must continuously send it at an implementation defined interval, usually somewhere between 30 and 60 seconds. ===== Format ===== ^ Index ^ Type ^ Description ^ | 0 | ''%%0%%'' | Ping packet ID | | 1 | [[sockchat:types#string|string]] | Current user ID | ===== Examples ===== An outgoing ping packet for a user with ID 214. 0\t214 ===== See Also ===== * [[sockchat:s2c:pong|S2C Packet 0: Pong]] - Packet that acknowledges the keepalive.