{"_id":"@types/express-ws","_rev":"4664009","name":"@types/express-ws","description":"TypeScript definitions for express-ws","dist-tags":{"latest":"3.0.6","ts2.3":"3.0.0","ts2.4":"3.0.0","ts2.5":"3.0.0","ts2.6":"3.0.0","ts2.7":"3.0.0","ts2.8":"3.0.0","ts2.9":"3.0.0","ts3.0":"3.0.0","ts3.1":"3.0.0","ts3.2":"3.0.0","ts3.3":"3.0.0","ts3.4":"3.0.0","ts3.5":"3.0.0","ts3.6":"3.0.1","ts3.7":"3.0.1","ts3.8":"3.0.1","ts3.9":"3.0.1","ts4.0":"3.0.1","ts4.1":"3.0.1","ts4.2":"3.0.1","ts4.3":"3.0.1","ts4.4":"3.0.1","ts4.5":"3.0.4","ts4.6":"3.0.4","ts4.7":"3.0.4","ts4.8":"3.0.5","ts4.9":"3.0.5","ts5.0":"3.0.5","ts5.1":"3.0.5","ts5.2":"3.0.6","ts5.3":"3.0.6","ts5.4":"3.0.6","ts5.5":"3.0.6","ts5.6":"3.0.6","ts5.7":"3.0.6","ts5.8":"3.0.6","ts5.9":"3.0.6","ts6.0":"3.0.6"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2026-04-10T22:25:18.000Z","created":"2018-04-14T19:23:48.826Z","3.0.6":"2025-10-24T04:10:53.033Z","3.0.5":"2024-08-27T06:10:03.197Z","3.0.4":"2023-11-07T03:17:48.521Z","3.0.3":"2023-10-18T02:16:22.159Z","3.0.2":"2023-09-23T17:32:21.535Z","3.0.1":"2021-07-08T12:31:29.792Z","3.0.0":"2018-04-14T19:23:48.826Z"},"users":{},"repository":{"url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","type":"git","directory":"types/express-ws"},"versions":{"3.0.6":{"name":"@types/express-ws","version":"3.0.6","license":"MIT","_id":"@types/express-ws@3.0.6","maintainers":[{"name":"types","email":""}],"contributors":[{"url":"https://github.com/ajliv","name":"AJ Livingston","githubUsername":"ajliv"}],"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-ws","dist":{"shasum":"b38cee8f84db1c9aaf11a53964db07d58c90909c","size":2071,"noattachment":false,"key":"/@types/express-ws/-/@types/express-ws-3.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/express-ws/download/@types/express-ws-3.0.6.tgz"},"main":"","types":"index.d.ts","scripts":{},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"repository":{"url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","type":"git","directory":"types/express-ws"},"description":"TypeScript definitions for express-ws","directories":{},"dependencies":{"@types/ws":"*","@types/express":"*","@types/express-serve-static-core":"*"},"_hasShrinkwrap":false,"peerDependencies":{},"typeScriptVersion":"5.2","_npmOperationalInternal":{"tmp":"tmp/express-ws_3.0.6_1761279052818_0.285759588061115","host":"s3://npm-registry-packages-npm-production"},"typesPublisherContentHash":"f20c90bb4e152b1552ba893b4d0c280ccc245c4c3f59ca69157da0febf488b91","_cnpmcore_publish_time":"2025-10-24T04:10:53.033Z","publish_time":1761279053033,"_source_registry_name":"default","_cnpm_publish_time":1761279053033},"3.0.5":{"name":"@types/express-ws","version":"3.0.5","license":"MIT","_id":"@types/express-ws@3.0.5","maintainers":[{"name":"types","email":""}],"contributors":[{"url":"https://github.com/ajliv","name":"AJ Livingston","githubUsername":"ajliv"}],"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-ws","dist":{"shasum":"5abf3dda3acb0a339351f089c31aca708f234c7c","size":2045,"noattachment":false,"key":"/@types/express-ws/-/@types/express-ws-3.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/express-ws/download/@types/express-ws-3.0.5.tgz"},"main":"","types":"index.d.ts","scripts":{},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"repository":{"url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","type":"git","directory":"types/express-ws"},"description":"TypeScript definitions for express-ws","directories":{},"dependencies":{"@types/ws":"*","@types/express":"*","@types/express-serve-static-core":"*"},"_hasShrinkwrap":false,"typeScriptVersion":"4.8","_npmOperationalInternal":{"tmp":"tmp/express-ws_3.0.5_1724739003007_0.912474245028311","host":"s3://npm-registry-packages"},"typesPublisherContentHash":"6ba7d05a4f0cd7e5217c835abbc54d9779e967744975877621ef1c7452dd7213","_cnpmcore_publish_time":"2024-08-27T06:10:03.197Z","publish_time":1724739003197,"_source_registry_name":"default","_cnpm_publish_time":1724739003197},"3.0.4":{"name":"@types/express-ws","version":"3.0.4","description":"TypeScript definitions for express-ws","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-ws","license":"MIT","contributors":[{"name":"AJ Livingston","githubUsername":"ajliv","url":"https://github.com/ajliv"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/express-ws"},"scripts":{},"dependencies":{"@types/express":"*","@types/express-serve-static-core":"*","@types/ws":"*"},"typesPublisherContentHash":"09cccbf279b29cdec69e51c1349b3f8351d83a4333b6bfa05d1f231e611449ac","typeScriptVersion":"4.5","_id":"@types/express-ws@3.0.4","dist":{"shasum":"917a11966b520df9f3a5ce56919be057ee65c63b","size":2041,"noattachment":false,"key":"/@types/express-ws/-/@types/express-ws-3.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/express-ws/download/@types/express-ws-3.0.4.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-ws_3.0.4_1699327068281_0.49298608848895453"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-07T03:17:48.521Z","publish_time":1699327068521,"_source_registry_name":"default","_cnpm_publish_time":1699327068521},"3.0.3":{"name":"@types/express-ws","version":"3.0.3","description":"TypeScript definitions for express-ws","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-ws","license":"MIT","contributors":[{"name":"AJ Livingston","githubUsername":"ajliv","url":"https://github.com/ajliv"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/express-ws"},"scripts":{},"dependencies":{"@types/express":"*","@types/express-serve-static-core":"*","@types/ws":"*"},"typesPublisherContentHash":"8822448443857edf2d15417b5d4b8aa934fc277f4e234fb3846b6af7952a0f07","typeScriptVersion":"4.5","_id":"@types/express-ws@3.0.3","dist":{"shasum":"67a2c6a9aeb6c7ad77cfbd112a5cf55bc573bacf","size":2040,"noattachment":false,"key":"/@types/express-ws/-/@types/express-ws-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/express-ws/download/@types/express-ws-3.0.3.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-ws_3.0.3_1697595381919_0.15185516461250104"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-18T02:16:22.159Z","publish_time":1697595382159,"_source_registry_name":"default","_cnpm_publish_time":1697595382159},"3.0.2":{"name":"@types/express-ws","version":"3.0.2","description":"TypeScript definitions for express-ws","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-ws","license":"MIT","contributors":[{"name":"AJ Livingston","url":"https://github.com/ajliv","githubUsername":"ajliv"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/express-ws"},"scripts":{},"dependencies":{"@types/express":"*","@types/express-serve-static-core":"*","@types/ws":"*"},"typesPublisherContentHash":"1f03ee67fe8da5d0ec6c79fd833dcd73c5d2ce5396b3f45f5a63b8e3bb81b8c5","typeScriptVersion":"4.5","_id":"@types/express-ws@3.0.2","dist":{"shasum":"9c342d64f6396f4a44d11c7d6c7be28310c192ac","size":2108,"noattachment":false,"key":"/@types/express-ws/-/@types/express-ws-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/express-ws/download/@types/express-ws-3.0.2.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-ws_3.0.2_1695490341369_0.12006726692715941"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-23T17:32:21.535Z","publish_time":1695490341535,"_source_registry_name":"default","_cnpm_publish_time":1695490341535},"3.0.1":{"name":"@types/express-ws","version":"3.0.1","description":"TypeScript definitions for express-ws","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-ws","license":"MIT","contributors":[{"name":"AJ Livingston","url":"https://github.com/ajliv","githubUsername":"ajliv"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/express-ws"},"scripts":{},"dependencies":{"@types/express":"*","@types/express-serve-static-core":"*","@types/ws":"*"},"typesPublisherContentHash":"81859adc3141142e6a6bbdfc10221cc35aedb282b753e19683e407f2cb7e8fd7","typeScriptVersion":"3.6","_id":"@types/express-ws@3.0.1","dist":{"shasum":"6fbf5dfdbeedd16479ccbeecbca63c14be26612e","size":2044,"noattachment":false,"key":"/@types/express-ws/-/@types/express-ws-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/express-ws/download/@types/express-ws-3.0.1.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-ws_3.0.1_1625747489643_0.7358940264405947"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T13:30:00.511Z","publish_time":1625747489792,"_cnpm_publish_time":1625747489792},"3.0.0":{"name":"@types/express-ws","version":"3.0.0","description":"TypeScript definitions for express-ws","license":"MIT","contributors":[{"name":"AJ Livingston","url":"https://github.com/ajliv","githubUsername":"ajliv"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/express-serve-static-core":"*","@types/express":"*","@types/ws":"*"},"typesPublisherContentHash":"1e3ef2f9092dd289bf086ae7fcb0ac9ae8b9175d33b1d8f8fd88ccbcc0b82462","typeScriptVersion":"2.3","_id":"@types/express-ws@3.0.0","dist":{"shasum":"89674edba2e9141916fc4d4d30fbd4f810e6b80b","size":1947,"noattachment":false,"key":"/@types/express-ws/-/@types/express-ws-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/express-ws/download/@types/express-ws-3.0.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-ws_3.0.0_1523733828761_0.5685094356168485"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T13:29:59.647Z","publish_time":1523733828826,"_cnpm_publish_time":1523733828826}},"readme":"# Installation\r\n> `npm install --save @types/express-ws`\r\n\r\n# Summary\r\nThis package contains type definitions for express-ws (https://github.com/HenningM/express-ws).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-ws.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-ws/index.d.ts)\r\n````ts\r\nimport express = require(\"express\");\nimport * as core from \"express-serve-static-core\";\nimport * as http from \"http\";\nimport * as https from \"https\";\nimport ws = require(\"ws\");\n\ndeclare module \"express\" {\n    function Router(options?: RouterOptions): expressWs.Router;\n}\n\ndeclare function expressWs(\n    app: express.Application,\n    server?: http.Server | https.Server,\n    options?: expressWs.Options,\n): expressWs.Instance;\ndeclare namespace expressWs {\n    type Application = express.Application & WithWebsocketMethod;\n    type Router = express.Router & WithWebsocketMethod;\n\n    interface Options {\n        leaveRouterUntouched?: boolean | undefined;\n        wsOptions?: ws.ServerOptions | undefined;\n    }\n\n    interface RouterLike {\n        get: express.IRouterMatcher<this>;\n        [key: string]: any;\n        [key: number]: any;\n    }\n\n    interface Instance {\n        app: Application;\n        applyTo(target: RouterLike): void;\n        getWss(): ws.Server;\n    }\n\n    type WebsocketRequestHandler = (ws: ws.WebSocket, req: express.Request, next: express.NextFunction) => void;\n    type WebsocketMethod<T> = (route: core.PathParams, ...middlewares: WebsocketRequestHandler[]) => T;\n\n    interface WithWebsocketMethod {\n        ws: WebsocketMethod<this>;\n    }\n}\n\nexport = expressWs;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Fri, 24 Oct 2025 04:02:41 GMT\r\n * Dependencies: [@types/express](https://npmjs.com/package/@types/express), [@types/express-serve-static-core](https://npmjs.com/package/@types/express-serve-static-core), [@types/ws](https://npmjs.com/package/@types/ws)\r\n\r\n# Credits\r\nThese definitions were written by [AJ Livingston](https://github.com/ajliv).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-ws","license":"MIT"}