-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow multiple databases on the same port #1141
Comments
I was looking through the code and would be happy to put up a PR but want to get the convo going here first. |
Hi @josiahruddell great idea. To serve two rxdb-databases on the same port, we could then do const server1 = db1.server({
path: `/${db1}`,
port: 3000,
})
db2.server({
path: `/${db2}`,
express: server1.app
}) What do you think? |
I like the implementation idea @pubkey. I'll take a stab at it soon. |
@josiahruddell have you started on this? |
Yeah I'll open a PR there are some TODOs still |
Closed see #1156 (comment) |
Case
Enhancement
Issue
Cannot connect multiple databases to the same server/app running the same port through rxdb.
Info
Code
Create a server on the nodeJS side...
The feature request is to allow multiple calls to
db.server
with the same port and different paths.The text was updated successfully, but these errors were encountered: