You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
774 B
43 lines
774 B
// chat.js
|
|
// Copyright (C) 2024 DTP Technologies, LLC
|
|
// All Rights Reserved
|
|
|
|
'use strict';
|
|
|
|
import mongoose from 'mongoose';
|
|
// const AuthToken = mongoose.model('AuthToken');
|
|
const ChatRoom = mongoose.model('ChatRoom');
|
|
const ChatRoomInvite = mongoose.model('ChatRoomInvite');
|
|
|
|
import { SiteService, SiteError } from '../../lib/site-lib.js';
|
|
|
|
export default class ChatService extends SiteService {
|
|
|
|
static get name ( ) { return 'ChatService'; }
|
|
static get slug () { return 'chat'; }
|
|
|
|
constructor (dtp) {
|
|
super(dtp, ChatService);
|
|
}
|
|
|
|
async start ( ) {
|
|
|
|
}
|
|
|
|
async createRoom (owner, roomDefinition) {
|
|
const room = new ChatRoom();
|
|
|
|
}
|
|
|
|
async destroyRoom (user, room) {
|
|
|
|
}
|
|
|
|
async joinRoom (room, user) {
|
|
|
|
}
|
|
|
|
async leaveRoom (room, user) {
|
|
|
|
}
|
|
}
|