-
Notifications
You must be signed in to change notification settings - Fork 1
WIP: initial implementation #1
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
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
60f488d to
0bd8a1e
Compare
|
replaced with #3 |
Routes for the Map-Sharer (although Map Receiver would use the DELETE route)
POST /mapShares { mapId: string }: create a map share, returnsMapSharetype. Data populated internally by the server (bounds, zoom, estimated size)GET /mapShares/:shareId: getMapShareinfo for a shareIdGET /mapShares/:shareId/events: state change events, includingbytesDownloadedforstate: 'downloading'events.GET /mapShares/:shareId/download: SMP file for shareDELETE /mapShares/:shareId: cancel / delete a map shareRoutes for Map Receiver:
POST /downloads MapShare: start downloading a map share (or reject). Returns{ downloadId: string }GET /downloads/:downloadId:MapSharewith current state.GET /downloads/:downloadId/events: state change events, includingbytesDownloadedDELETE /downloads/:downloadId: cancel downloadOn Map-sharer side, frontend:
POST /mapSharesto create the sharemapeoProject.members.sendMapShare(mapShare)/mapShares/:shareId/eventsDELETE /mapShares/:shareIdOn Map-sharer side, Core backend:
project.members.sendMapShare(mapShare: MapShare)sends message as extension over project creator coreOn Map-receiver side, frontend:
mapeoProject.on('map-share')POST /downloadsto start downloading or rejectGET /downloads/:downloadId/eventsfor progressDELETE /downloads/:shareIdOn Map-receiver side, backend:
map-shareThe rest of the backend code will all be in the map server, e.g. in the map server on the receiver,
POST /downloadswill start a download fromGET /mapShares/:mapShareIdon the map-sharer, and stream events to any connections toGET /downloads/:downloadId/events