We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d55e9d5 commit 6474cfdCopy full SHA for 6474cfd
javascript/ql/lib/semmle/javascript/frameworks/WebSocket.qll
@@ -214,7 +214,13 @@ module ServerWebSocket {
214
class ServerSocket extends EventEmitter::Range, DataFlow::SourceNode {
215
LibraryName library;
216
217
- ServerSocket() { this = getAConnectionCall(library).getCallback(1).getParameter(0) }
+ ServerSocket() {
218
+ this = getAConnectionCall(library).getCallback(1).getParameter(0)
219
+ or
220
+ // support for the express-ws library: https://www.npmjs.com/package/express-ws
221
+ library = ws() and
222
+ this = Express::appCreation().getAMemberCall("ws").getABoundCallbackParameter(1, 0)
223
+ }
224
225
/**
226
* Gets the name of the library that created this server socket.
0 commit comments