diff --git a/websocket_server/app.js b/websocket_server/app.js index f55880f..9666b9f 100644 --- a/websocket_server/app.js +++ b/websocket_server/app.js @@ -1,3 +1,8 @@ +/** + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + import express from 'express' const app = express() diff --git a/websocket_server/roomData.js b/websocket_server/roomData.js index 3f77bce..6354fdd 100644 --- a/websocket_server/roomData.js +++ b/websocket_server/roomData.js @@ -1,5 +1,10 @@ /* eslint-disable no-console */ +/** + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + import fetch from 'node-fetch' import dotenv from 'dotenv' diff --git a/websocket_server/server.js b/websocket_server/server.js index 2e90ade..1ac4c40 100644 --- a/websocket_server/server.js +++ b/websocket_server/server.js @@ -1,6 +1,11 @@ /* eslint-disable no-console */ /* eslint-disable n/no-process-exit */ +/** + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + import http from 'http' import https from 'https' import fs from 'fs' diff --git a/websocket_server/socket.js b/websocket_server/socket.js index f1c30bf..4c2d7bc 100644 --- a/websocket_server/socket.js +++ b/websocket_server/socket.js @@ -1,5 +1,10 @@ /* eslint-disable no-console */ +/** + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + import { Server as SocketIO } from 'socket.io' import jwt from 'jsonwebtoken' import { getRoomDataFromFile, roomDataStore, saveRoomDataToFile } from './roomData.js' diff --git a/websocket_server/utils.js b/websocket_server/utils.js index 2906b3d..31abcd7 100644 --- a/websocket_server/utils.js +++ b/websocket_server/utils.js @@ -1,3 +1,8 @@ +/** + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + export const convertStringToArrayBuffer = (string) => new TextEncoder().encode(string).buffer export const convertArrayBufferToString = (arrayBuffer) => new TextDecoder().decode(arrayBuffer) export const parseBooleanFromEnv = (value) => value === 'true'