mirror of
https://github.com/Thream/socketio-jwt.git
synced 2024-07-21 09:38:31 +02:00
docs: client side usage, specify build
in import
This commit is contained in:
parent
ff6a84a8e1
commit
bf234bd7b8
@ -132,7 +132,7 @@ io.on('connection', async (socket) => {
|
||||
|
||||
```ts
|
||||
import { io } from 'socket.io-client'
|
||||
import { isUnauthorizedError } from '@thream/socketio-jwt/UnauthorizedError.js'
|
||||
import { isUnauthorizedError } from '@thream/socketio-jwt/build/UnauthorizedError.js'
|
||||
|
||||
// Require Bearer Token
|
||||
const socket = io('http://localhost:9000', {
|
||||
|
Loading…
Reference in New Issue
Block a user