Documentation ¶
Index ¶
- Variables
- type Transport
- func (caller *Transport) Call(method string, args []interface{}, reply interface{}, scid string) error
- func (caller *Transport) Close() error
- func (caller *Transport) SetCallback(api string, method string, notice func(args json.RawMessage)) error
- func (caller *Transport) WriteJSON(v interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrShutdown = errors.New("connection is shut down")
)
Functions ¶
This section is empty.
Types ¶
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
func NewTransport ¶
func (*Transport) Close ¶
Close calls the underlying web socket Close method. If the connection is already shutting down, ErrShutdown is returned.
func (*Transport) SetCallback ¶
Click to show internal directories.
Click to hide internal directories.