Skip to content

Commit

Permalink
Adding comment for singleton message
Browse files Browse the repository at this point in the history
  • Loading branch information
rishigupta1599 committed May 20, 2024
1 parent be111a3 commit d1b76e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/core/CustomRequestHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

const logger = require('../util/loggerFactory');

/*
This class handles the custom requests made to existing playwright connection.
This is kept as Singleton class because we want to maintain a map of commands for which
we can resolve the response once we receive from Playwright server.
Please don't change the singleton behaviour of this class.
*/
class CustomRequestHandler {
constructor() {
if (!CustomRequestHandler.instance) {
Expand Down

0 comments on commit d1b76e9

Please sign in to comment.