Skip to content

Commit c9decb1

Browse files
Updated StreamMessage struct
1 parent 571aa8e commit c9decb1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/session/model.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,10 @@ type SessionView struct {
7777
LastActiveAt time.Time `json:"lastActiveAt"`
7878
Expiry time.Time `json:"expiry"`
7979
}
80+
81+
/* websocket stream message */
82+
type StreamMessage struct {
83+
Type string `json:"type"`
84+
Data interface{} `json:"data"`
85+
Timestamp time.Time `json:"timestamp"`
86+
}

0 commit comments

Comments
 (0)