diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-01 05:26:52 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-01 05:26:52 +0800 |
commit | 3af211dd65d6690afce9976a9f47ab1cdddb8d58 (patch) | |
tree | 2fbfade2d934d5c41a0e3bec449d1b23dea3b0ae /websocket/message.go | |
parent | ab6ede51d7fedb9270cab08ee732a834be34dab2 (diff) | |
download | dexon-3af211dd65d6690afce9976a9f47ab1cdddb8d58.tar.gz dexon-3af211dd65d6690afce9976a9f47ab1cdddb8d58.tar.zst dexon-3af211dd65d6690afce9976a9f47ab1cdddb8d58.zip |
Implemented WebSocket package
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..30e284814 --- /dev/null +++ b/websocket/message.go @@ -0,0 +1,14 @@ +package websocket + +import "github.com/ethereum/eth-go/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) +} |