-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
35 lines (30 loc) · 808 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
|--------------------------------------------------------------------------
| Package entrypoint
|--------------------------------------------------------------------------
|
| Export values from the package entrypoint as you see fit.
|
*/
import { Server } from 'socket.io'
export { configure } from './configure.js'
export { defineConfig } from './src/define_config.js'
export { stubsRoot } from './stubs/main.js'
export {
OnMessage,
OnceMessage,
OnConnect,
OnDisconnect,
OnAnyMessage,
} from './src/decorator/handle_message.js'
export { SocketIoMiddleware } from './src/socketio_middleware.js'
declare module '@adonisjs/core/http' {
export interface HttpContext {
io: Server
}
}
declare module '@adonisjs/core/types' {
export interface ContainerBindings {
io: Server
}
}