Skip to content

This project simplifies WebSocket testing by enabling developers to connect to channels and send customizable messages for seamless integration.

Notifications You must be signed in to change notification settings

muhammetcagatay/virtual-web-socket

Repository files navigation

Virtual Web Socket

Table of Contents
  1. About The Project
  2. Built With
  3. Installation

🔰 About The Project

Virtual Web Socket project using .NET that allows developers to test WebSocket functionality. Virtual Web Socket project provides an endpoint through which developers can connect to a WebSocket channel from any application and send desired messages over WebSocket with the ability to specify the number of messages, time intervals, and content. It serves as a useful tool for developers who want to experiment with WebSocket communication and validate the behavior of their applications in various scenarios. By facilitating easy and customizable message sending, the project simplifies the testing process and helps developers ensure the robustness and reliability of their WebSocket implementations.

🔨 Requirements

Technologies needed to get the project up and running

🔌 Installation

Follow the steps below to run the project in your local

  1. Clone the repo

    git clone https://github.com/muhammetcagatay/virtual-web-socket
  2. Go to project folder

    cd virtual-web-socket
  3. Create docker image and create and run docker container

    docker build -t virtual-web-socket .
    docker run -p 80:80 virtual-web-socket

🌎 Endpoints

Listening and serving API and WebSocket on : 80

The following url should be used to create a new websocket: ws://localhost:80/ws/channel/{channelName}

The endpoint to be used to send the message

Method Path Query Params Body
POST /api/socket/sendMessage channelName : The web socket channel name to which the message will be sent
messageCount : number of messages to be sent
interval : time interval between messages
json model to be sent over web socket

About

This project simplifies WebSocket testing by enabling developers to connect to channels and send customizable messages for seamless integration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published