Dirk
07/03/2025, 8:44 AMAlexander Sysoev
07/03/2025, 10:22 AMrpc
Alexander Sysoev
07/03/2025, 10:24 AMjwtUndPortalrechtePrufungBlocking(...) {
rpc { ... }
}
Alexander Sysoev
07/03/2025, 10:24 AMresource
route does, so I'm not sure what effect it may have on the codeDirk
07/03/2025, 10:31 AMAlexander Sysoev
07/03/2025, 10:32 AMShould it be removed?Not sure, I never tested Rpc with it. It might just not work, but I'm not that into Ktor specifics here. Rpc route uses ktor 's
websocket
under the hoodAlexander Sysoev
07/03/2025, 10:35 AMDoes it actually work the way I intended, so that a service instance is created per user, and I can pass the user to it via the constructor?If you create one rpc connection (that is one websocket request) per user - than yes. So for each new
RpcClient
on the client side - there will be a new service on the serverAlexander Sysoev
07/03/2025, 10:35 AMDirk
07/03/2025, 10:38 AMAlexander Sysoev
07/03/2025, 10:38 AMAlexander Sysoev
07/03/2025, 10:40 AM