github.com/rsms/gotalk
v1.3.7
#1507 most downloaded on Go modules
rsms/gotalk
What this package is like to depend on
Last release 6 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 2.8 years
Some releases are documented
notes for 9 of 18 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
22 releases · first in 2015
0 releases in the last 12 months
see the full history below
Release timeline
22 releases · Jan 2015 to Dec 2020Releases
latest 22-
v1.3.706 Dec 2020 -
v1.3.7-0.20201206023319-6418fd7483f306 Dec 2020 pre-releaseNothing published for this version
-
v1.3.620 Nov 2020 -
v1.3.520 Nov 2020Release notes
Open source →Adds
Handlers.NewSubHandlers()which returns a wrapper// NewSubHandlers returns a new Handlers object which wraps the receiver. // It can be used to override or extend h, without modifying h. // For example, it could be used to expose an extra set of operations to certain sockets, // like signed-in users. func (h *Handlers) NewSubHandlers() *Handlers
-
v1.3.418 Nov 2020Release notes
Open source →Adds ability to customize error logging with
gotalk.ErrorLoggerandgotalk.HandlerErrorLoggerwhich both have the typegotalk.LoggerFuncExample:
gotalk.HandlerErrorLogger = func(s *gotalk.Sock, format string, args ...interface{}) { myLogger.Warn("[gotalk %p] " + format, append([]interface{}{s}, args...)...) }
-
v1.3.303 Nov 2020 -
v1.3.203 Nov 2020Nothing published for this version
-
v1.3.128 Oct 2020Release notes
Open source →Adds type
WebSocketConnectionwhich is an alias forgolang.org/x/net/websocket.Connalong with documentation about how to access the underlying web socket connection inside a gotalk handler. -
v1.3.027 Oct 2020Release notes
Open source →API changes in version 1.3 compared to 1.2
-
Limitsis no longer an interface but not a plain struct with fields
you can set and edit. This simplifies the code and makes the API easier to use. -
Limitsnow exposes wait times asBufferMinWait,BufferMaxWait,
StreamMinWaitandStreamMaxWait. These values default to the same as in
Gotalk 1.2 (500–5000ms.) -
The string message of
ErrSockClosedhas been changed to"socket closed"
(was "socket is closed")
Other changes:
-
Fixes a race condition with closing sockets which could lead to CloseHandler
being called twice in case two user goroutines would call Sock.Close() -
Fixes a race condition that could lead to a deadlock when sending requests and
waiting for responses.
-
-
v1.2.102 Oct 2020Release notes
Open source →Go library: Adds the ability to gracefully shut down sockets via a new method
Socket.Shutdown(low level). Note that Web Socket-based gotalk does not need this.JS library: Increases the minimum reconnect delay after a clean connection close in keepalive. This has no effect on the API and no effect on semantics. When a server restarts and cleanly shuts down sockets, avoid slamming the server immediately with connection attempts. A future version might introduce randomness to this delay as well.
-
v1.2.001 Oct 2020Release notes
Open source →Improvements to the Sock and WebSocketServer API:
-
WebSocketServer now uses a WebSocket struct type instead of Sock; a specialized derivative of Sock with methods for accessing the underlying web socket and http connection.
-
Adds new callback WebSocketServer.OnConnect, deprecating OnAccept. OnConnect receives a WebSocket struct rather than a Sock struct as is the case with OnAccept (i.e. why OnConnect was added instead of using OnAccept.)
-
Adds method Sock.String() which returns a name that uniquely identifies the socket during its lifetime. Useful for logging.
-
Deprecates the function WebSocketHandler() in favor for a better-named NewWebSocketServer(). Functionality is unchanged.
-
-
v1.1.501 Oct 2020Nothing published for this version
-
v1.1.417 Sep 2020Nothing published for this version
-
v1.1.315 Sep 2020Nothing published for this version
-
v1.1.215 Sep 2020Nothing published for this version
-
v1.1.114 Sep 2020Nothing published for this version
-
v1.1.014 Sep 2020Nothing published for this version
-
v1.0.113 Sep 2020Nothing published for this version
-
v1.0.013 Sep 2020Nothing published for this version
-
v0.0.0-20200109181115-64a26fa3d44e09 Jan 2020 pre-releaseNothing published for this version
-
v0.0.0-20171125232849-676bd297b77825 Nov 2017 pre-releaseNothing published for this version
-
v0.0.0-20150123041548-7fcc13b9d81623 Jan 2015 pre-releaseNothing published for this version