oops missed these things

This commit is contained in:
Josh Burman 2019-12-22 01:31:21 -05:00
parent df864790f9
commit 33d1886599
3 changed files with 5 additions and 7 deletions

View File

@ -7,9 +7,6 @@ class CustomClient extends ClientBase {
// test: Joi.alternatives().try(Joi.string(), Joi.object())
// }
// }
validations() {
return { what: "test"}
}
};
module.exports = CustomClient;

View File

@ -12,8 +12,9 @@ var app = require('./config/app');
var logger = require('./logger');
import ClientManager from './clientManager';
import ChannelManager from './channelManager';
import ClientBase from './clients/clientBase';
import PublicClient from './clients/types/publicClient';
import PrivateClient from './clients/types/privateClient';
import CustomClient from './clients/types/customClient';
// if (app.environment == 'development') {
@ -55,13 +56,13 @@ function connectionManager() {
}
if (clientManager.clientExists(data.user_id)) {
var client: ClientBase|PrivateClient|null = clientManager.getClient(data.user_id);
var client: PublicClient|PrivateClient|CustomClient|null = clientManager.getClient(data.user_id);
if (client != null) {
client.replaceWebSocket(ws);
}
} else {
var client: ClientBase|PrivateClient|null = clientManager.addClient(data, channelManager, ws);
var client: PublicClient|PrivateClient|CustomClient|null = clientManager.addClient(data, channelManager, ws);
}
if (client != null) {