message

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen() <-chan js.Value

Send the field data of the message.

It use self.addEventListener method, so several event handlers can be used.

func Post

func Post(m interface{})

Send a message to the parent of this worker. Before the message m is transform to Js value with reflectjs.ToJs function.

self.postMessage(m) // in Javascript

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL