fix(core): update

This commit is contained in:
2021-01-28 01:30:27 +00:00
parent bfa3330eb6
commit 08d7224016
8 changed files with 152 additions and 22 deletions

View File

@ -90,6 +90,17 @@ tap.test('should react to a new websocket connection from client', async () => {
await testSmartsocketClient.connect();
});
tap.test('should be able to tag a connection', async (tools) => {
await testSmartsocketClient.addTag({
id: 'awesome',
payload: 'yes'
});
const tagOnServerSide = await testSmartsocket.socketConnections.find((socketConnection) => {
return true;
}).getTagById('awesome');
expect(tagOnServerSide.payload).to.equal('yes');
})
tap.test('2 clients should connect in parallel', async () => {
// TODO: implement parallel test
});