initial commit

This commit is contained in:
2025-09-19 14:59:07 -04:00
commit d2b9f273e0
14 changed files with 898 additions and 0 deletions

14
types/message.go Normal file
View File

@@ -0,0 +1,14 @@
package types
type MessageType string
const (
MessageTypeData MessageType = "data"
MessageTypeClose MessageType = "close"
)
type Message struct {
Type MessageType `json:"type"`
StreamID string `json:"stream_id"`
Data []byte `json:"data,omitempty"`
}