fix(core): update

This commit is contained in:
2019-08-12 17:23:10 +02:00
parent 7998d79b13
commit 051aba3299
6 changed files with 33 additions and 34 deletions
+3 -10
View File
@@ -124,16 +124,9 @@ export class Universe {
if (universeConnection) {
console.log('found UniverseConnection for socket');
} else {
console.log('universe client not yet present');
console.log('creating one now as send only');
const universeConnectionInstance = new UniverseConnection({
socketConnection: socketConnectionArg,
authenticationRequests: []
});
await UniverseConnection.addConnectionToCache(
this.universeCache,
universeConnectionInstance
);
return {
error: 'You need to authenticate for a channel'
};
}
const unauthenticatedMessage = UniverseMessage.createMessageFromPayload(dataArg);
const foundChannel = await UniverseChannel.authorizeAMessageForAChannel(