fix(core): update

This commit is contained in:
2019-04-22 09:58:36 +02:00
parent 904a48d414
commit 39d3a0f2f8
11 changed files with 91 additions and 57 deletions
+2 -1
View File
@@ -80,7 +80,8 @@ export class Universe {
// lets create the http request route
this.smartexpressServer.addRoute('/sendmessage', new Handler('POST', async (req, res) => {
this.universeCache.addMessage(req.body);
const universeMessageInstance = new UniverseMessage(req.body);
this.universeCache.addMessage(universeMessageInstance);
}));
// add websocket upgrade