1. Build the project: "npm run build"
2. Start a web server: "npm run start"
3. Aim your browser at "http://localhost:8000/samples?[parameters as listed below]"
For ease of testing, several parameters can be set in the query string:
* s = Direct Line secret, or
* t = Direct Line token (obtained by calling Direct Line's Generate Token)
* domain = optionally, the URL of an alternate Direct Line endpoint
* webSocket = set to 'true' to use WebSocket to receive messages (currently defaults to false)
* userid, username = id (and optionally name) of bot user
* botid, botname = id (and optionally name) of bot
假设您将示例留在本地计算机上的repo中,那么您需要转到
localhost:8000/samples/{sample name}
或从您看到的文件中单击适当的路径。你知道吗在react示例中,is也这样说:
相关问题 更多 >
编程相关推荐