import { RTMT } from "./rtmt/rtmt"
import { RTMTWS } from "./rtmt/rtmt_websocket"
import { UserKeyStore, UserKeyStoreImpl } from "./store/key_store"

type Context = {
    rtmt : RTMT
    userKeyStore : UserKeyStore
}

export const initContext = ()=> {
    const rtmt =  new RTMTWS()
    const userKeyStore = new UserKeyStoreImpl()
    return {
        rtmt : rtmt,       
        userKeyStore : userKeyStore,
    }
}

export const context : Context = initContext()
