@sockethub/client 5.0.0-alpha.23 → 5.0.0-alpha.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -100,8 +100,8 @@ const sc = new SockethubClient(socket, { initTimeoutMs: 5000 });
100
100
 
101
101
  sc.socket.on('message', (msg) => console.log(msg));
102
102
  sc.socket.on('ready', (info) => {
103
- console.log('Sockethub ready:', info.reason, info.sockethubVersion,
104
- info.platforms.map((p) => ({ id: p.id, version: p.version })));
103
+ console.log('Sockethub ready:', info.reason, `API v${info.apiVersion}`,
104
+ info.platforms.map((p) => ({ id: p.id, apiVersion: p.apiVersion })));
105
105
  });
106
106
  sc.socket.on('init_error', (e) => {
107
107
  console.warn('Sockethub init issue:', e.error);
@@ -188,7 +188,7 @@ sc.socket.emit("message", {
188
188
  "@context": sc.contextFor("irc"),
189
189
  actor: { id: "mynick@irc.libera.chat", type: "person", name: "mynick" },
190
190
  target: {
191
- id: "sockethub@irc.libera.chat",
191
+ id: "#sockethub@irc.libera.chat",
192
192
  type: "room",
193
193
  name: "#sockethub",
194
194
  },