From 44c2b25369d039538b40d7c094bf8639a0d789e3 Mon Sep 17 00:00:00 2001 From: Eric Wohltman Date: Tue, 21 Apr 2020 08:16:51 -0400 Subject: [PATCH] Fix godoc style exported function comments --- wsapi.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wsapi.go b/wsapi.go index 0098094..e3d5045 100644 --- a/wsapi.go +++ b/wsapi.go @@ -838,11 +838,14 @@ func (s *Session) reconnect() { } } +// Close closes a websocket and stops all listening/heartbeat goroutines. +// TODO: Add support for Voice WS/UDP func (s *Session) Close() error { return s.CloseWithCode(websocket.CloseNormalClosure) } -// Close closes a websocket and stops all listening/heartbeat goroutines. +// CloseWithCode closes a websocket using the provided closeCode and stops all +// listening/heartbeat goroutines. // TODO: Add support for Voice WS/UDP connections func (s *Session) CloseWithCode(closeCode int) (err error) {