Skip to content

Commit a314406

Browse files
authored
style: remove trailing whitespace (#306)
1 parent 6a1af5b commit a314406

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Built upon [ws@8](https://www.npmjs.com/package/ws).
1111

1212
```shell
1313
npm i @fastify/websocket
14-
# or
14+
# or
1515
yarn add @fastify/websocket
1616
```
1717

@@ -277,7 +277,7 @@ fastify.get('/', { websocket: true }, (socket, req) => {
277277
const stream = ws.createWebSocketStream(socket, { /* options */ })
278278
stream.setEncoding('utf8')
279279
stream.write('hello client')
280-
280+
281281
stream.on('data', function (data) {
282282
// Make sure to set up a data handler or read all the incoming
283283
// data in another way, otherwise stream backpressure will cause
@@ -314,7 +314,7 @@ App.register(async function(fastify) {
314314
})
315315
})
316316

317-
module.exports = App
317+
module.exports = App
318318
```
319319

320320
#### App.test.js

types/index.test-d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,4 @@ server.get('/websockets-no-type-inference',
164164

165165
expectType<typeof fastifyWebsocket>(namedFastifyWebsocket);
166166
expectType<typeof fastifyWebsocket>(defaultFastifyWebsocket);
167-
167+

0 commit comments

Comments
 (0)