Results 36 comments of Atrue

I've committed the code into github. https://github.com/Atrue/RPColor :blush:

@bvedad please add this property to `ServerOptions` interface to declaration file

@thoov I'd like to join as a contributor. Our team is using this awesome package and we'd like to continue using it. There are already some PR's we want to...

@thoov Thank you! Should I ping you for publishing the package to npm or you can give the permissions there? (Bumping version https://github.com/thoov/mock-socket/pull/329)

@piranna The dispatchEvent function is already called with the delay helper in the websocket. The server event can be called with delay manually in your code. Can you please give...

Make sense, you can create a PR, but add the delay in the server's methods where it's needed, not in the dispatchEvent; It would be very helpful if you also...

All the events inside the library are going through `dispatchEvent`. If the event or the code should be delayed it's wrapped using the delay helper. See `websocket.js` for examples

@tuzmusic According to the screen you have 2 WebSockets called for the first test: `/PM_Settings` and `/sockjs-node/...`, so it's why only the latest ws is assigned to `mockServer` and is...

@jrfornes Looks like your mock server is running across multiple tests until the new instance of WebsocketServerMock is created. It's better to clear all mocks in `afterEach` hook, so it...

Is the native WebSocket get called? You can check it by running the cypress in server mode. I'm not sure how the sockjs and stompjs are working. If so you...