Skip to content
JS
Package

mock-socket

Javascript mocking library for websockets and socket.io

v9.3.1, 11 Sept 2023MITCommonJSTypes: NoneTestingWebSockets and realtime
$ npm install mock-socket

Key numbers

As of 25 Sept 2026
Weekly downloads
684.5k
+56% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
3 years ago
v9.3.1
GitHub stars
806
123 forks
Open issues / PRs
65 / 10
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0250k500k750k1mSept 2025Mar 2026Sept 2026High 963k (21 Jul 2026)Low 242.2k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

684,522 downloads last week, 3,399,406 in the last month. The 12-month change of +56% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
071 in total
Latest version
9.3.1, 11 Sept 20233 years ago
First published
27 Nov 2014
Last push to GitHub
10 Feb 2025591 days before the snapshot
Repository archived
No
Open issues
65
Open pull requests
10
Commits, last 52 weeks
0
Dependents on npm
72

Major versions

  1. v9 first release 9.0.0, 29 Jul 2019
  2. v8 first release 8.0.0, 5 Jul 2018
  3. v7 first release 7.0.0, 4 Aug 2017
  4. v6 first release 6.0.0, 31 Oct 2016
  5. v5 first release 5.0.0, 6 Sept 2016
  6. v4 first release 4.0.0, 3 Aug 2016
  7. v3 first release 3.0.0, 6 Jun 2016
  8. v2 first release 2.0.0, 13 Jan 2016
  9. v1 first release 1.0.0, 22 Dec 2015
  10. v0 first release 0.0.1, 27 Nov 2014

Recent releases

VersionPublished
9.3.111 Sept 2023
9.3.05 Sept 2023
9.2.114 Feb 2023
9.2.09 Feb 2023
9.1.57 Jun 2022
9.1.425 May 2022
9.1.320 Apr 2022
9.1.225 Jan 2022
9.1.125 Jan 2022
9.1.013 Jan 2022
9.0.815 Nov 2021
9.0.71 Nov 2021
9.0.618 Oct 2021
9.0.530 Sept 2021
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>= 8
Runtimes
-
Unpacked size (npm)
326 kB
Dependencies (0)
None
npm install mock-socket
  • jsDelivrhttps://cdn.jsdelivr.net/npm/mock-socket@9.3.1/
  • unpkghttps://unpkg.com/mock-socket@9.3.1/
  • esm.shhttps://esm.sh/mock-socket@9.3.1
PackageWeekly downloadsGzipLast releaseModuleComparison
muk-prop17.1k-3 years agoCommonJS-
@copilotkit/aimock1.1m-2 days agoESM + CommonJS@copilotkit/aimock vs mock-socket
ts-auto-mock27k-2 years ago--
ts-mockito172k-6 years agoCommonJSmock-socket vs ts-mockito
jest-localstorage-mock281k-3 years agoESM + CommonJS-
strong-mock23.3k-4 months agoESM + CommonJS-
mountebank17.4k-3 years agoCommonJS-
ng-mocks404.6k-6 days agoESM + CommonJSmock-socket vs ng-mocks

Related

Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.