mock-socket
mock-socket copied to clipboard
Javascript mocking library for WebSockets and Socket.IO
Hello, I working on an Angular projet. I'm trying to use a real websocket for my production code and the mock-socket for my cypress tests. Here how I start the...
# Problem I am trying to use `mock-sockets` with Cypress, setting up the mock in the `onBeforeLoad` hook for `cy.visit()` in my `beforeEach` block. I can get one test to...
Bumps [jsdom](https://github.com/jsdom/jsdom) from 11.12.0 to 16.5.0. Release notes Sourced from jsdom's releases. Version 16.5.0 Added window.queueMicrotask(). Added window.event. Added inputEvent.inputType. (diegohaz) Removed ondragexit from Window and friends, per a spec...
Hi! 👋 Firstly, thanks for your work on this project! 🙂 Today I used [patch-package](https://github.com/ds300/patch-package) to patch `[email protected]` for the project I'm working on. Events from server to client needs...
I would like to switch between a mocked socket and a real websocket during development in the frontend. For this reason I am looking for a way to switch the...
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...
Currently mocking web sockets within web worker is not possible. Window and global object within web worker is not shared
The documentation gives an example of using socketio, but using it throws an error: `import { Server, SocketIO } from 'mock-socket';` > Module '"mock-socket"' has no exported member 'SocketIO'. I...
There is no feature inside mock-socket to delay connection of WebSocket. Add this functionality to SocketIO and WebSocket.