Deno library for Utopia Network API
import Utopia from './utopia_api.js';
const api = new Utopia(token, websocketenabled?, apiHost?, apiPort?, wsPort?);
try{
api.setProfileStatus("DoNotDisturb", "Understanding Utopia Deno API");
} catch(e){
console.error(e)
}
for await (const msg of api.newInstantMessage){
console.log(msg);
}
Both lists can be explored with your IDE thanks to typings included in lib
(C) 2020 Oocrop
(C) 2020 KaMeHb-UA
(C) 2020 Sagleft