nextcloud / whiteboard

Create & collaborate on an infinite canvas!
https://apps.nextcloud.com/apps/whiteboard
GNU Affero General Public License v3.0
37 stars 3 forks source link

Investigate ext app for node backend #119

Open juliushaertl opened 1 month ago

juliushaertl commented 1 month ago

As a replacement for https://github.com/nextcloud/whiteboard/issues/27 we should see if we can build a AppAPI app https://docs.nextcloud.com/server/latest/admin_manual/ai/app_api_and_external_apps.html that just runs a docker container for the backend.

Started adding this for the local dev environment https://github.com/juliushaertl/nextcloud-docker-dev/commit/a3e7cb8f985bb35dacf98602ccd94d2209583cc3

hweihwang commented 1 day ago

Initial efforts for ExApps:

https://github.com/hweihwang/whiteboard_websocket

hweihwang commented 1 day ago

Current progress:

=> However, I'm facing problems with the socket connection. Both websocket and polling connections are failing. The AppAPI documentation mentions: "There is a limitation of AppAPI ExApp proxy—the WebSocket connections are not supported." I was hoping polling might work, but it doesn't seem to connect.

image

image

hweihwang commented 1 day ago

Updates:

=> In the app_api source, I've been modifying the ExAppProxyController a bit to include this to proxy the queries:

$queryParams = $this->request->getRequestUri();
$queryParams = explode('?', $queryParams);
$queryParams = $queryParams[1];
$path = $other . '?' . $queryParams;

image