Netless

Netless

  • JavaScript
  • Android
  • iOS
  • Server
  • FAQ
  • GitHub
  • 🇨🇳 中文

›Quick start

Document structure

  • Outline

Installation guide

  • SDK install
  • Version history
  • Open source
  • Debug

Quick start

  • Precondition
  • Room authentication
  • Real-time room
  • replay

Initialization

  • SDK parameters
  • Room parameters
  • Replay parameters

Features

  • Tools
  • Perspective operation
  • Page (scene) management
  • Status listen
  • Whiteboard operation
  • Custom event
  • Cursor position sync
  • Document conversion
  • Replay
  • Big class read-only
  • Plugins

Upgrade

  • SDK v2 migration

Precondition

This chapter uses pure HTML add JavaScript text access as an introduction, and uses es6 syntax for development. In actual development, vue and react can be escaped to es5 after being configured.

This article describes the preparations required before using the whiteboard SDK.

1. Get sdkToken

Read preparation for access,register an account,get sdk token。

2. Add SDK to the project

Create index.html with the following content:

<!DOCTYPE html>
<html>
    <head>
        <!-- The version number can be changed according to the latest version. -->
        <link rel="stylesheet" href="https://sdk.herewhite.com/white-web-sdk/2.7.1.css">
        <script src="https://sdk.herewhite.com/white-web-sdk/2.7.1.js"></script>
        <script>
            // Subsequent implementation code
        </script>
    </head>
    <body>
        <div id="whiteboard" style="width: 100%; height: 100vh;"></div>
    </body>
</html>

For the SDK integration of react project, please refer to SDK integration. And add a <body> in index.html in the project <div id="whiteboard" style="width: 100%; height: 100vh;"></div> Elements so we can mount the whiteboard.

Recommended reading

  1. Real-time room
  2. Replay room
Last updated on 3/26/2020 by 伍双
← DebugRoom authentication →
  • 1. Get sdkToken
  • 2. Add SDK to the project
  • Recommended reading
Netless
Let's interactive.
Product
ConsoleHomepageDemoGithub
Company
Join usServicePrivacy
Contact
support@netless.linkCommunity
Copyright © 2020 Netless