From c6e8ef86f1b6ec4d44ff8d0c1a107e3c98ac7d75 Mon Sep 17 00:00:00 2001 From: Pierre PACI Date: Sun, 19 Nov 2017 17:59:05 +0100 Subject: [PATCH] update control message doc add default handler in the control message part --- doc.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc.go b/doc.go index 060b13f..706bd14 100644 --- a/doc.go +++ b/doc.go @@ -95,9 +95,14 @@ // functions are called from the NextReader, ReadMessage and the message Read // methods. // +// Connections handle comes with default handler which can be overrided: // The default ping handler sends a pong to the peer. The application's reading // goroutine can block for a short time while the handler writes the pong data // to the connection. +// The default pong handler does nothing. +// The default close handler sends a close frame back to the peer. Like with ping, +// the goroutine can block for a short time while the handler writes the close data +// to the connection. // // The application must read the connection to process ping, pong and close // messages sent from the peer. If the application is not otherwise interested