Skip to content

Commit 411697c

Browse files
committed
make ESLint happy again
1 parent b19d2e3 commit 411697c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

hapi-plugin-websocket.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ const register = async (server, pluginOptions) => {
338338
})
339339
}
340340
})
341-
}})
341+
} })
342342

343343
/* perform WebSocket handling on HAPI stop */
344344
server.ext({ type: "onPreStop", method: (server, h) => {
@@ -359,7 +359,7 @@ const register = async (server, pluginOptions) => {
359359
else
360360
resolve()
361361
})
362-
}})
362+
} })
363363

364364
/* make available to HAPI request the remote WebSocket information */
365365
server.ext({ type: "onRequest", method: (request, h) => {
@@ -368,7 +368,7 @@ const register = async (server, pluginOptions) => {
368368
request.info.remotePort = request.plugins.websocket.req.socket.remotePort
369369
}
370370
return h.continue
371-
}})
371+
} })
372372

373373
/* allow WebSocket information to be easily retrieved */
374374
server.decorate("request", "websocket", (request) => {
@@ -389,7 +389,7 @@ const register = async (server, pluginOptions) => {
389389
return Boom.badRequest("Plain HTTP request to a WebSocket-only route not allowed")
390390
}
391391
return h.continue
392-
}})
392+
} })
393393

394394
/* handle request/response hooks */
395395
server.ext({ type: "onPostAuth", method: (request, h) => {
@@ -399,15 +399,15 @@ const register = async (server, pluginOptions) => {
399399
request.plugins.websocket, request, h)
400400
}
401401
return h.continue
402-
}})
402+
} })
403403
server.ext({ type: "onPostHandler", method: (request, h) => {
404404
if (isRouteWebSocketEnabled(request.route) && isRequestWebSocketDriven(request)) {
405405
let routeOptions = fetchRouteOptions(request.route)
406406
return routeOptions.response.call(request.plugins.websocket.ctx,
407407
request.plugins.websocket, request, h)
408408
}
409409
return h.continue
410-
}})
410+
} })
411411
}
412412

413413
/* export register function, wrapped in a plugin object */

0 commit comments

Comments
 (0)