Options
All
  • Public
  • Public/Protected
  • All
Menu

@foxitsoftware/web-collab-server - v1.4.0

Web Collaboration Server

Welcome to the API documentation for the web collaboration server, which is a server component of Foxit Web Collaboration Add-on.

Installation

Web Collaboration Server is available as a NPM package.

npm install @foxitsoftware/web-collab-server

Usage

import {WebCollabServer, UserService} from "@foxitsoftware/web-collab-server";

// UserService should be implemented by user App
const userService: UserService = {
getUserByToken(token) {
// validate token and get uesr info from user system of client APP
}
}

const databaseConfig = {
type: 'postgres',
host: 'localhost',
port: 5432,
database: 'collab-db',
user: 'foxit',
password: '123456',
}

new WebCollabServer({
databaseConfig,
userService,
}).start(8080);

Generated using TypeDoc