100mslive / 100ms-docs Goto Github PK
View Code? Open in Web Editor NEW๐ฅ Blazing fast 100ms Documentation built with nextjs, preact , mdx , next-mdx-remote
Home Page: https://docs.100ms.live
License: MIT License
๐ฅ Blazing fast 100ms Documentation built with nextjs, preact , mdx , next-mdx-remote
Home Page: https://docs.100ms.live
License: MIT License
Currently, there's no home for docs visiting https://docs.100ms.live/ would redirect to javascript docs
We should have a page that will have
Examples
/v1
& /v2
#149/api-reference
#153many packages havent being updated + many of them being conflicted with others ...
lot of dependencies are lot of debts ...
To help the Golang users, add sample code for token generation as we have for the other languages over here
based on the scroll the specific table of content is highlighted
Table of Content is implemented here.
Instead of repeating headers in each MDX file add them via DocLayout
repro scenarios in this video. i started from "server-side" section, navigated to android.
fields used in token generation need to be clarified. e.g, where do i get the user_id / room_id from?
https://www.100ms.live/docs/javascript/v2/foundation/security-and-tokens#app-token
on this page, the following section is taking me to the android sample app. can we update this to go to the Flutter app?
"Want to see how this works in a live project? Take a look at our advanced sample app."
https://github.com/100mslive/100ms-docs/blob/main/docs/javascript/v2/features/chat.mdx
Problem 1:
In React to get the broadcast messages, spelling mistake:
brodacast should be broadcast
(Search brodacast and you will get the error)
Problem 2:
Check the line above the "brodacast"
the parameter of selecting all messages - selectMessages
should be selectHMSMessages
I wish to work on this and I am creating a PR soon.
Refer: https://tailwindcss.com/
Steps to reproduce:
Visit: https://docs.100ms.live/server-side/v2/features/room
Scroll horizontally the code snippet
After calling API to disable a room, response comes with success 200, but active field comes still as true.
And for Deno(Supabase Edge Function) please. I try, but error Error: Failed to create room: Unauthorized
error Error: Failed to create room: Unauthorized
at Object.handler (file:///home/deno/functions/create-room/index.ts:83:13)
at eventLoopTick (ext:core/01_core.js:183:11)
at async handleHttp (ext:sb_core_main_js/js/http.js:93:17)
import {
create,
getNumericDate,
Header,
Payload,
} from "https://deno.land/x/djwt/mod.ts";
const access_key = Deno.env.get("APP_ACCESS_KEY");
const app_secret = Deno.env.get("APP_SECRET");
const payload: Payload = {
access_key: access_key,
type: "management",
version: 2,
iat: getNumericDate(Math.floor(Date.now() / 1000)),
nbf: getNumericDate(Math.floor(Date.now() / 1000)),
exp: getNumericDate(60 * 60 * 24), // 24 hours from now
};
const header: Header = {
alg: "HS256",
typ: "JWT",
};
const cryptoKey = await crypto.subtle.importKey(
"raw",
new TextEncoder().encode(app_secret),
{ name: "HMAC", hash: { name: "SHA-256" } },
false,
["sign"],
);
let token;
try {
if (!app_secret) {
throw new Error("Secret not found");
}
token = await create(header, payload, cryptoKey);
} catch (err) {
console.error(err);
}
To reproduce:
Visit: https://docs.100ms.live/javascript/v2/guides/react-quickstart#changing-ui-based-on-connection-state
Make the viewport small and scroll horizontally the code block as you can see the highlighting isn't covering the width
NOTE: all styles are present in
theme.css
We don't have docs feedback, whether this was helpful (Upvote, Downvote) thing
Planning to add this in the docs in the future.
Would be using Prisma and Nextjs serverless
Currently, Blockquotes are mapped a Custom Note component
refer this :
100ms-docs/components/MDXComponents.tsx
Line 19 in 1f0d794
100ms-docs/components/MDXComponents.tsx
Line 58 in 1f0d794
Our current Note component looks like this:
Visit https://docs.100ms.live/javascript/v2/features/device-change check it live.
It looks very simple at the moment
Things that can make it better
Feel free to drop questions if you have
Switch to dark mode and try to copy some text. It's really annoying that selection is not visible.
Features:
Cmd + C
should copy the Code Block in scrollView (Vercel)Toc
(as Stripe Docs)Toc
(Same as Gitbook)Copied
Pop to the Left instead of Bottom (to avoid hidden in small snippets)To reproduce:
Visit https://docs.100ms.live/javascript/v2/guides/react-quickstart
Click on Copy in one of the Code Snippets
You can see that the "Copied" popup is at the bottom
If you're planning to fix this just remove the popup and replace the copy icon with Check
icon
Refer to this implementation here
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.