@steijnveer/fbr-plugin-io 0.0.1 → 0.1.0

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -33,15 +33,15 @@ function ioPlugin({ eventsDir, extensions } = {}) {
33
33
  .filter(([eventName]) => eventName === 'connection')
34
34
  .map(([_, handler]) => handler);
35
35
  server._io.on('connection', (socket) => {
36
- log(`a user connected: ${socket.id}`);
36
+ log.debug(`a user connected: ${socket.id}`);
37
37
  socket.on('disconnect', () => {
38
- log(`(${socket.id}) user disconnected`);
38
+ log.debug(`(${socket.id}) user disconnected`);
39
39
  });
40
40
  socket.onAny((event, data) => {
41
- log(`(${socket.id}) Received event: ${event} with args: ${JSON.stringify(data)}`);
41
+ log.debug(`(${socket.id}) Received event: ${event} with args: ${JSON.stringify(data)}`);
42
42
  });
43
43
  socket.onAnyOutgoing((event, data) => {
44
- log(`(${socket.id}) Emitting event: ${event} with args: ${JSON.stringify(data)}`);
44
+ log.debug(`(${socket.id}) Emitting event: ${event} with args: ${JSON.stringify(data)}`);
45
45
  });
46
46
  for (const [eventName, handler] of events)
47
47
  socket.on(eventName, (data) => handler(socket, data ?? null));
package/package.json CHANGED
@@ -39,5 +39,5 @@
39
39
  },
40
40
  "type": "module",
41
41
  "types": "./dist/index.d.ts",
42
- "version": "0.0.1"
42
+ "version": "0.1.0"
43
43
  }