Server side code for connecting with Pi-Eye server
- NodeJS
- TypeScript
- Node and npm
- Install NPM package: client-connection-server
npm install https://github.com/Pi-Eye/client-connection-server
import https from "https";
import ServerSide from "client-connection-server";
const httpsServer; // https server, setup on port and with certificates
async function auth_function(cookie: string) { // some auth function taking in a string, returning true for success, false for fail
return true;
}
const server_side = new CameraSide(httpsServer, auth_function);Distributed uner the GPL-3.0 License. See LICENSE.txt for more information.
Bennett Wu - bwu1324@gmail.com