Documentation
¶
Rendered for js/wasm
Index ¶
- func ConnectWebSocket(this js.Value, args []js.Value) interface{}
- func DisconnectWebSocket(this js.Value, args []js.Value) interface{}
- func GetDestination(this js.Value, args []js.Value) interface{}
- func GetDestinationPointer() *destination.Destination
- func GetIdentity(this js.Value, args []js.Value) interface{}
- func GetStats(this js.Value, args []js.Value) interface{}
- func GetTransport() *transport.Transport
- func InitReticulum(this js.Value, args []js.Value) interface{}
- func IsConnected(this js.Value, args []js.Value) interface{}
- func RegisterJSFunctions()
- func RequestPath(this js.Value, args []js.Value) interface{}
- func SendAnnounce(appData []byte) interface{}
- func SendAnnounceJS(this js.Value, args []js.Value) interface{}
- func SendData(destHash []byte, data []byte) interface{}
- func SendDataJS(this js.Value, args []js.Value) interface{}
- func SetAnnounceCallback(this js.Value, args []js.Value) interface{}
- func SetPacketCallback(this js.Value, args []js.Value) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDestinationPointer ¶ added in v0.9.0
func GetDestinationPointer() *destination.Destination
GetDestinationPointer returns the internal destination pointer.
func GetTransport ¶ added in v0.9.0
GetTransport returns the internal transport pointer.
func RegisterJSFunctions ¶
func RegisterJSFunctions()
RegisterJSFunctions registers the Reticulum WASM API to the JavaScript global scope.
func SendAnnounce ¶
func SendAnnounce(appData []byte) interface{}
SendAnnounce is a generic function to send an announce
func SendAnnounceJS ¶ added in v0.9.0
SendAnnounceJS is the JS-facing wrapper for SendAnnounce
func SendDataJS ¶ added in v0.9.0
SendDataJS is the JS-facing wrapper for SendData
func SetAnnounceCallback ¶ added in v0.9.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.