Answer the question
In order to leave comments, you need to log in
What is the best way to organize the model in the base for the chat room?
What is the best way to organize the model in the base for the chat room. So far I have this model.
var schema = new Schema ({
name: {
type: String,
required: true
},
inPrivate: {
type: Boolean,
required: false,
default: false
},
location: {
type: [Number], // [<longitude>, <latitude>]
index: '2d'
},
radius : Number,
created: {
type: Date,
default: Date.now
}});
Answer the question
In order to leave comments, you need to log in
So can use standard rooms in socket.io and assign room id from mongodb to them?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question