mirror of
https://github.com/appy-one/acebase-server.git
synced 2026-05-24 22:01:28 -06:00
Labels
No labels
bug
enhancement
feature request
pull-request
types
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase-server#55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/appy-one/acebase-server/pull/55
Author: @Azarattum
Created: 11/24/2022
Status: ✅ Merged
Merged: 12/5/2022
Merged by: @appy-one
Base:
master← Head:server📝 Commits (5)
d80668badd option to use an external server86df890add route prefix option7934988refactor requested changeda9c6df3fix backwards compatibilityae5ded4change route config option to rootPath📊 Changes
6 files changed (+77 additions, -15 deletions)
View changed files
📝
src/routes/webmanager.ts(+1 -1)📝
src/server.ts(+48 -14)📝
src/settings/index.ts(+18 -0)📝
src/shared/env.ts(+1 -0)📝
src/shared/http.ts(+8 -0)📝
src/websocket/socket.io.ts(+1 -0)📄 Description
Some changes that were discussed in #49 were made here. I added a
serveroption that accepts anhttpserver and arouteoption which overrides the base route for AceBase.For example (modified
test.ts):It will use
serveras it's server and listen onhttp://localhost:8080/acebase. Socket.IO will listen onhttp://localhost:8080/acebase/ws.IMPORTANT! BREAKING CHANGE!
The default path for socket.io is now
http://localhost:8080/ws! (Previously washttp://localhost:8080/socket.io). In general the path now ishttp://localhost:8080/+ route +/ws.AceBase didn't specify any path before for
Socket.IOto use, therefore it fellback to/socket.io. We might want to change the new version tohttp://localhost:8080/+ route +/socket.ioto preserve compatibility. But since this PR needs client changes anyway I thought usingwswould be nicer. Also I've seen some comments in the code about supporting other web socket libraries. I that case/wswould be more future proof path than/socket.io.I haven't started working on the client yet. Let me know you thoughts about this PR. What shall we do with
socket.io? Are the other changes ok? I've also fixed the redirect towebmanager. Are there any other path dependent parts that I might have missed?🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.