✨ Add chat
This commit is contained in:
+3
-1
@@ -3,6 +3,7 @@
|
||||
// Dependencies
|
||||
const slug = require('slug')
|
||||
const Files = require('./files.js')
|
||||
const Chat = require('./chat.js')
|
||||
const AdmZip = require('adm-zip')
|
||||
const glob = require('glob')
|
||||
const fs = require('fs')
|
||||
@@ -21,6 +22,7 @@ class Project
|
||||
this.excludeRegex = new RegExp(_options.excludeRegex)
|
||||
this.zipNeedsUpdate = true
|
||||
this.files = new Files(this.config, { projectSocket: this.projectSocket })
|
||||
this.chat = new Chat(this.config, { slug: this.slug })
|
||||
this.date = new Date()
|
||||
|
||||
// Add test contents
|
||||
@@ -38,7 +40,7 @@ class Project
|
||||
|
||||
setSocket()
|
||||
{
|
||||
// Save original socket and create a channel for this specific project
|
||||
// Create a channel for this specific project
|
||||
this.projectSocket = this.config.socket.of('/project/' + this.slug)
|
||||
|
||||
// Connection event
|
||||
|
||||
Reference in New Issue
Block a user