Skip to content

Commit 33f1745

Browse files
committed
docs: format readme
1 parent 1372b4b commit 33f1745

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="https://github.com/AssemblyAI/assemblyai-node-sdk/blob/main/assemblyai.png?raw=true" width="500"/>
22

3-
______________________________________________________________________
3+
---
44

55
[![npm](https://img.shields.io/npm/v/assemblyai)](https://www.npmjs.com/package/assemblyai)
66
[![Test](https://github.com/AssemblyAI/assemblyai-node-sdk/actions/workflows/test.yml/badge.svg)](https://github.com/AssemblyAI/assemblyai-node-sdk/actions/workflows/test.yml)
@@ -263,7 +263,9 @@ const rt = client.streaming.transcriber({
263263
> _Server code_:
264264
>
265265
> ```typescript
266-
> const token = await client.streaming.createTemporaryToken({ expires_in_seconds = 60 });
266+
> const token = await client.streaming.createTemporaryToken({
267+
> expires_in_seconds = 60,
268+
> });
267269
> // TODO: return token to client
268270
> ```
269271
>
@@ -281,7 +283,6 @@ const rt = client.streaming.transcriber({
281283
You can configure the following events.
282284
283285
<!-- prettier-ignore -->
284-
285286
```typescript
286287
rt.on("open", ({ id, expires_at }) => console.log('Session ID:', id, 'Expires at:', expires_at));
287288
rt.on("close", (code: number, reason: string) => console.log('Closed', code, reason));

0 commit comments

Comments
 (0)