From 60b9313a7aacb8d506a24dcf55cd5780da6d0c9f Mon Sep 17 00:00:00 2001 From: Chris Rhodes Date: Thu, 7 Mar 2013 17:43:33 -0800 Subject: [PATCH] Ping/Pong message. --- client/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/connection.go b/client/connection.go index 7d79ba9..02d1b4b 100644 --- a/client/connection.go +++ b/client/connection.go @@ -272,7 +272,7 @@ func (conn *Conn) ping() { for { select { case <-tick.C: - conn.Ping(time.Now().UnixNano()) + conn.Ping(fmt.Sprintf("%d", time.Now().UnixNano())) case <-conn.cPing: tick.Stop() return