Skip to content

Commit d80b46a

Browse files
committed
docs: correct example for the websocket
1 parent 17726f1 commit d80b46a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adminforth/documentation/docs/tutorial/03-Customization/16-websocket.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ In two words, to subscribe to a topic from any frontend component you need to do
77

88
```javascript
99
import websocket from '@/websocket';
10-
import { logger } from 'adminforth'
1110

1211
websocket.subscribe('/topic-name', (data) => {
1312
// this callback called when we receive publish in topic from the websocket
14-
logger.info(data);
13+
console.log(data);
1514
});
1615
```
1716

0 commit comments

Comments
 (0)