Fix formatting
This commit is contained in:
parent
8bb65258fe
commit
b1f4f72aa5
1 changed files with 10 additions and 9 deletions
|
|
@ -128,7 +128,6 @@ Use SSE when:
|
|||
```typescript
|
||||
import express from "express";
|
||||
|
||||
let transport: SSEServerTransport | null = null;
|
||||
const app = express();
|
||||
|
||||
const server = new Server({
|
||||
|
|
@ -138,6 +137,8 @@ Use SSE when:
|
|||
capabilities: {}
|
||||
});
|
||||
|
||||
let transport: SSEServerTransport | null = null;
|
||||
|
||||
app.get("/sse", (req, res) => {
|
||||
transport = new SSEServerTransport("/messages", res);
|
||||
server.connect(transport);
|
||||
|
|
|
|||
Loading…
Reference in a new issue