6b04a86e7e
By creating a new collection called WhiteboardCleanStatus which is used to alert the clients that the server is cleaning shapes. When shapes are being cleaned they are not drawn and so things don't slow down on firefox or chrome
16 lines
433 B
CoffeeScript
Executable File
16 lines
433 B
CoffeeScript
Executable File
Meteor.startup ->
|
|
Meteor.log.info "server start"
|
|
|
|
#remove all data
|
|
Meteor.WhiteboardCleanStatus.remove({})
|
|
clearUsersCollection()
|
|
clearChatCollection()
|
|
clearMeetingsCollection()
|
|
clearShapesCollection()
|
|
clearSlidesCollection()
|
|
clearPresentationsCollection()
|
|
|
|
# create create a PubSub connection, start listening
|
|
Meteor.redisPubSub = new Meteor.RedisPubSub(->
|
|
Meteor.log.info "created pubsub")
|