mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
add support for express-ws
This commit is contained in:
@@ -214,7 +214,13 @@ module ServerWebSocket {
|
||||
class ServerSocket extends EventEmitter::Range, DataFlow::SourceNode {
|
||||
LibraryName library;
|
||||
|
||||
ServerSocket() { this = getAConnectionCall(library).getCallback(1).getParameter(0) }
|
||||
ServerSocket() {
|
||||
this = getAConnectionCall(library).getCallback(1).getParameter(0)
|
||||
or
|
||||
// support for the express-ws library: https://www.npmjs.com/package/express-ws
|
||||
library = ws() and
|
||||
this = Express::appCreation().getAMemberCall("ws").getABoundCallbackParameter(1, 0)
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the name of the library that created this server socket.
|
||||
|
||||
Reference in New Issue
Block a user