The connection strings for the live and historic streams follow standard URI scheme format:
scheme:[//[user:password@]host[:port]][/]path[?query][#fragment]
#
options = {
liveConfig: {
url: "wss://127.0.0.1:8888/subscribe/websocket?X-AUTH-TOKEN=TOKEN",
tags: ["log"],
logging: {enabled: true, level: "DEBUG"}
},
historicConfig: {
url: "https://127.0.0.1:1234?X-AUTH-TOKEN=TOKEN",
type: "app",
id: "",
limit: 50,
logging: {enabled: true, level: "DEBUG"}
},
}
#
logs = new nanobox.Logs $(".logs"), options
logs.build()
This component was specifically designed to work with nanopack/mist and nanopack/logvac and therefore makes use of nanopack/mist-client-js and nanopack/logvac-client-js for all connections to, and communication with, those services (please see their respective README's for any troubleshooting).