Skip to content

@tsed/socketio-testing - test with two different clients? #2324

Answered by Romakita
Ravendarksky asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @Ravendarksky

Here is the explanation:

TestMongooseContext.get<SocketClientService>(SocketClientService) => // singleton
await TestMongooseContext.invoke<SocketClientService>(SocketClientService)  => // new instance

See you
Romain

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Romakita
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants