@jcbuisson/express-x 2.1.0 → 2.1.1

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/package.json +1 -1
  2. package/src/server.mjs +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcbuisson/express-x",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/index.mjs",
package/src/server.mjs CHANGED
@@ -244,12 +244,12 @@ export function expressX(config) {
244
244
  app.log('error', `there is no service named '${name}'`, 'missing-service')
245
245
  }
246
246
 
247
- async function joinChannel(channelName, socket) {
247
+ function joinChannel(channelName, socket) {
248
248
  app.log('verbose', `joining ${channelName}, ${JSON.stringify(socket.data)}`)
249
249
  socket.join(channelName)
250
250
  }
251
251
 
252
- async function leaveChannel(channelName, socket) {
252
+ function leaveChannel(channelName, socket) {
253
253
  app.log('verbose', `leaving ${channelName}, ${JSON.stringify(socket.data)}`)
254
254
  socket.leave(channelName)
255
255
  }