diff options
Diffstat (limited to 'websocket/message.go')
-rw-r--r-- | websocket/message.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/websocket/message.go b/websocket/message.go new file mode 100644 index 000000000..67289c4c4 --- /dev/null +++ b/websocket/message.go @@ -0,0 +1,14 @@ +package websocket + +import "github.com/ethereum/go-ethereum/ethutil" + +type Message struct { + Call string `json:"call"` + Args []interface{} `json:"args"` + Seed int `json:"seed"` + Data interface{} `json:"data"` +} + +func (self *Message) Arguments() *ethutil.Value { + return ethutil.NewValue(self.Args) +} |