first commit
This commit is contained in:
16
pkg/websocket/peer/session.go
Normal file
16
pkg/websocket/peer/session.go
Normal file
@ -0,0 +1,16 @@
|
||||
package peer
|
||||
|
||||
import "time"
|
||||
|
||||
type Session struct {
|
||||
Conn Connection
|
||||
Time time.Time
|
||||
}
|
||||
|
||||
func NewSession(conn Connection) *Session {
|
||||
s := &Session{
|
||||
Conn: conn,
|
||||
Time: time.Now(),
|
||||
}
|
||||
return s
|
||||
}
|
Reference in New Issue
Block a user