Welcome to the API documentation for the web collaboration server, which is a server component of Foxit Web Collaboration Add-on.
Web Collaboration Server is available as a NPM package.
npm install @foxitsoftware/web-collab-server
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