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', {
|
||||
|
Reference in New Issue
Block a user