Documentation ¶
Rendered for js/wasm
Index ¶
Constants ¶
View Source
const ChannelRPCMain = "rpcMain"
View Source
const Prefix = "golang-msgcomm-"
Variables ¶
This section is empty.
Functions ¶
func EndpointAsStream ¶
func EndpointAsStream(channel string, endpoint Endpoint) io.ReadWriteCloser
func SendChunked ¶
SendChunked sends a message to a specific sender in a chunked format. This allows the sending of enormous messages without overruning potentially small message size limits. Receiving a chunked message requires wrapping a chunked endpoint around the receiving end of the endpoint, via GetChunkedEndpoint(...)
Types ¶
type Endpoint ¶
func GetChunkedEndpoint ¶
GetChunkedEndpoint creates an wrapper around the specified endpoint facilitating the sending and receipt of chunked messages
type Message ¶
type Message interface { // Content of the message Content() []byte // Unique identifer of the message's sender Sender() string // Send a response back to the sender Reply(channelName string, data []byte) JSValue() js.Value }
A message passed between processes
type SequencedMessage ¶
Click to show internal directories.
Click to hide internal directories.