diff options
Diffstat (limited to 'core/data.go')
| -rw-r--r-- | core/data.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/data.go b/core/data.go index a617f17..0bd8200 100644 --- a/core/data.go +++ b/core/data.go @@ -7,7 +7,8 @@ type Marshaler interface { type DataType uint8 const ( - TypeHandshake DataType = 0x01 + TypeUnknown DataType = 0x00 + TypeHandshake = 0x01 TypePing = 0x02 TypePong = 0x03 TypeTest = 0xFF @@ -26,5 +27,5 @@ type Test struct { } func (h Test) Marshal() []any { - return []any{[]byte(h.Message)} + return []any{append([]byte(h.Message), 0x0)} } |
