[](https://www.npmjs.com/package/easy-network-stub) [



EasyWsStub class. This helper will create a WebSocket server that your client connects to. You can then send messages to the client and receive messages from the client.
typescript
import { EasyWsStub } from 'easy-network-stub/ws';
const wsStub = new EasyWsStub(1337, 'connect');
await wsStub.init();
wsStub.send('{"value": "test123"}');
wsStub.close();
`
Strongly typed api parameters
You can add types to parameters and they will be parsed. Out of box 'string', 'number' and 'boolean' are supported. You can add your own types and parsers though.
Contributing ๐ง๐ปโ๐ป
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!
1. Fork the Project
2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
3. Commit your Changes (git commit -m 'Add some AmazingFeature')
4. Push to the Branch (git push origin feature/AmazingFeature)
5. Open a Pull Request
License ๐
Distributed under the MIT License. See LICENSE.txt` for more information.