CreateSession
Callable
- Parameters- sessionPool: SessionPool- Pool requesting the new session. 
- optionaloptions: { sessionOptions?: SessionOptions }
- optionalsessionOptions: SessionOptions
 - Returns Session | Promise<Session>
Pool requesting the new session.
Factory user-function which creates customized Session instances.