import Rayconnect from './rayconnect'; const app2 = new Rayconnect({ scopes: "test", appID: "main", space: "main", type: "micros", url: "https://test-net.rc0.ir" }) app2.OnConnect(async () => { try { const t = await app2.GetUserAccessNB({ username: "server_test", password: "gyMTY8340GS2PnWK2XaX0inbs3e3D9Dy4DCU6kgTgrc" }) console.log("connected") } catch (error) { console.log(error) } }) app2.Query({ scope:'test', address:'hello/world', method:'POST' },(data)=>{ console.log(data.data) })