func GetSessionSocket(socketid string) (*sessions.Session, error) { session, ok := stores.GetStore(socketid) if !ok { return nil, errors.New("No session associated with the socket") } return session, nil }
func IsLoggedInSocket(socketid string) bool { _, ok := stores.GetStore(socketid) return ok }