Skip to content

URN framework updates

41.1.19

Add a callback for URN.ignite

ts
const server = await urn.ignite(serverConf, (server) => {
    // Error handling Warning this is a must don't ask me why
    server.onError(({ code }) => {
        return {
            status: 'er',
            data: {
                msg: 'Invaild request',
                code: code
            }
        }
    })
})