Skip to content

Commit 61314bd

Browse files
author
Vitaliy Stoliarov
committed
close ws
1 parent 0f62083 commit 61314bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/ws2/auth.js

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ async function execute () {
2828
debug('authenticated')
2929

3030
// do something with authenticated ws stream
31+
await ws.close()
3132
}
3233

3334
execute()

0 commit comments

Comments
 (0)