Documentation
¶
Overview ¶
Package sockettest is a fake Slack Socket Mode server for tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server accepts one Socket Mode connection at a time. Frames sent while no client is connected wait for the next connection.
func (*Server) Disconnect ¶
Disconnect sends a disconnect envelope; later frames go to the next connection.
func (*Server) Drop ¶
func (s *Server) Drop()
Drop closes the current connection without a close handshake.
func (*Server) Open ¶
Open plays apps.connections.open: it counts the call and returns a fresh URL with a ticket and an app id in the query, as Slack does.