initial commit

This commit is contained in:
2025-09-19 14:59:07 -04:00
commit 5bb9052fa4
15 changed files with 937 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"`
}