Add client core, handshake pending frames, and in-memory Conn tests

This commit is contained in:
robert
2026-01-04 20:39:38 +00:00
parent 786533bbfc
commit ac2d1887a9
5 changed files with 405 additions and 30 deletions

25
message.go Normal file
View File

@@ -0,0 +1,25 @@
package ownwire_sdk
type EventKind uint8
const (
EventOpened EventKind = iota + 1
EventMessage
EventError
EventClosed
)
type Event struct {
Kind EventKind
Message Message
Err error
}
type Message struct {
Content string
Metadata string
SeqNum uint64
IsResponse bool
CreatedAt int64
}