Versions in this module Expand all Collapse all v0 v0.1.0 Dec 17, 2018 Changes in this version + type Client struct + Identifier string + OnConnect func() + OnError func(error) + Secret string + ServerAddr string + func (c *Client) Beat(interval time.Duration) (cancel context.CancelFunc) + type Server struct + OnConnect func(identifier string, req *http.Request) + OnDisconnect func(identifier string) + OnReconnect func(identifier string, req *http.Request) + func NewServer(secret string, timeout time.Duration) *Server + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Session struct