Skip to content

Messaging service follow BSSM principle (Basic Simple Stupid Messaging)

Notifications You must be signed in to change notification settings

matthewlui/MongooseMessaging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Messsaging:

Channel: A channel is a way to organise user access and message

{
    _id: ObjectId,
    attendee: [USER_ID],
    topic: String,
    createdAt: Date,
}

/user/me/channels

{
  data: [CHANNEL, CHANNEL]
}

/channel/:channelId/messages?page=1

{
	data: [Message, Message]
}

/message/

Message: Typed record which can be display on front end. Associated to Channel

{
    _id: ObjectId,
	from: USER_ID, // populate
	type: ENUM_STRING, //TEXT, AIA_INTERNAL_MAIL
	date: Date,
    channel: String,
	body: String,
	attachment: {
		type: ENUM_STRING,
        url: URL,
		lan: Number,
		loc: Number
    }
}

About

Messaging service follow BSSM principle (Basic Simple Stupid Messaging)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published