예제 #1
0
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
}
예제 #2
0
func IsLoggedInSocket(socketid string) bool {
	_, ok := stores.GetStore(socketid)
	return ok
}