Documentation
¶
Index ¶
- func GetConn(uri string) (*websocket.Conn, error)
- func GetSelfAddressBinary(conn *websocket.Conn) []byte
- func GetSelfAddressText(conn *websocket.Conn) string
- func Receive(conn *websocket.Conn) ([]byte, error)
- func ResponseIsBinary(rawResponse []byte) bool
- func ResponseIsError(rawResponse []byte) bool
- func ResponseIsSelfAddress(rawResponse []byte) bool
- func SendBinary(conn *websocket.Conn, address []byte, data []byte) error
- func SendBinaryFile(conn *websocket.Conn, address []byte, filename string) error
- func SendText(conn *websocket.Conn, address string, message string, withReplySurb bool) error
- type Command
- type Message
- type SignedCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSelfAddressBinary ¶
func GetSelfAddressText ¶
func ResponseIsBinary ¶
func ResponseIsError ¶
func ResponseIsSelfAddress ¶
func SendBinaryFile ¶
Types ¶
type Message ¶
type SignedCommand ¶
Click to show internal directories.
Click to hide internal directories.