Something went wrong on our end
Select Git revision
-
Jono Wenger authoredJono Wenger authored
message.go 801 B
////////////////////////////////////////////////////////////////////////////////
// Copyright © 2022 xx foundation //
// //
// Use of this source code is governed by a license that can be found in the //
// LICENSE file. //
////////////////////////////////////////////////////////////////////////////////
//go:build js && wasm
package worker
// Message is the outer message that contains the contents of each message sent
// to the worker. It is transmitted as JSON.
type Message struct {
Tag Tag `json:"tag"`
ID uint64 `json:"id"`
Response bool `json:"response"`
Data []byte `json:"data"`
}