Cleanup + add remaining utils
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
import { SocketConfig } from '../Types'
|
||||
import { DEFAULT_CONNECTION_CONFIG } from '../Defaults'
|
||||
import { EventEmitter } from 'events'
|
||||
import * as Connection from './groups'
|
||||
import _makeConnection from './groups'
|
||||
// export the last socket layer
|
||||
const makeConnection = (config: Partial<SocketConfig>) => (
|
||||
Connection.default({
|
||||
_makeConnection({
|
||||
...DEFAULT_CONNECTION_CONFIG,
|
||||
...config
|
||||
})
|
||||
)
|
||||
|
||||
export type Connection = ReturnType<typeof makeConnection>
|
||||
|
||||
export default makeConnection
|
||||
Reference in New Issue
Block a user