Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WSClient ¶
type WSClient struct {
AccessToken string
Timeout time.Duration
URL string
// contains filtered or unexported fields
}
WSClient defines the default websocket client.
func NewWebSocketClient ¶
NewWebSocketClient returns a websocket client.
func (*WSClient) CallAPI ¶
func (c *WSClient) CallAPI(req *nilbot.APIRequest) (resp *nilbot.APIResponse, err error)
CallAPI sends websocket request.
func (*WSClient) Listen ¶
func (c *WSClient) Listen(handler ...nilbot.EventHandler)
Listen websocket events.
Click to show internal directories.
Click to hide internal directories.