chore: make "auth" mandatory in SocketConfig

This commit is contained in:
Adhiraj Singh
2022-05-25 12:13:17 +05:30
parent 59652a5368
commit ed557967d1
3 changed files with 6 additions and 14 deletions

View File

@@ -1,9 +1,9 @@
import { DEFAULT_CONNECTION_CONFIG } from '../Defaults'
import { SocketConfig } from '../Types'
import { UserFacingSocketConfig } from '../Types'
import { makeBusinessSocket as _makeSocket } from './business'
// export the last socket layer
const makeWASocket = (config: Partial<SocketConfig>) => (
const makeWASocket = (config: UserFacingSocketConfig) => (
_makeSocket({
...DEFAULT_CONNECTION_CONFIG,
...config