Skip to content

Commit

Permalink
Fix ci/cd errs
Browse files Browse the repository at this point in the history
Signed-off-by: Hoang Pham <[email protected]>
  • Loading branch information
hweihwang committed Jul 1, 2024
1 parent 5b69076 commit cfb4b38
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions websocket_server/app.js
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
5 changes: 5 additions & 0 deletions websocket_server/roomData.js
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
5 changes: 5 additions & 0 deletions websocket_server/server.js
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
5 changes: 5 additions & 0 deletions websocket_server/socket.js
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
5 changes: 5 additions & 0 deletions websocket_server/utils.js
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit cfb4b38

Please sign in to comment.