SimpleWebSocketServer.SIBS.Front 1.0.2

dotnet add package SimpleWebSocketServer.SIBS.Front --version 1.0.2
                    
NuGet\Install-Package SimpleWebSocketServer.SIBS.Front -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SimpleWebSocketServer.SIBS.Front" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimpleWebSocketServer.SIBS.Front" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="SimpleWebSocketServer.SIBS.Front" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SimpleWebSocketServer.SIBS.Front --version 1.0.2
                    
#r "nuget: SimpleWebSocketServer.SIBS.Front, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SimpleWebSocketServer.SIBS.Front@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SimpleWebSocketServer.SIBS.Front&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=SimpleWebSocketServer.SIBS.Front&version=1.0.2
                    
Install as a Cake Tool

SimpleWebSocketServer.SIBS.Front

This project is a .NET-based WebSocket client designed to interface with SIBS payment terminals. It allows communication between a frontend system (such as a POS) and payment terminals through WebSocket protocols, supporting a range of operations including terminal configuration, transaction initiation, and data exchange.

Features

  • WebSocket client for communication with SIBS terminal servers
  • Modular structure with models for common request/response formats
  • Easy integration with POS and other frontend systems
  • Support for:
    • Terminal configuration
    • Transaction management
    • Card and customer data exchange
  • NuGet packaging support for easy distribution

Project Structure

  • FrontClient.cs – Core WebSocket communication logic
  • Models/ – Data models for various requests and responses (e.g. AmountData, CardData, CustomerData)
  • Enums/ – Common enums used throughout the project
  • App.config – Configuration file
  • .nuspec and .cmd – NuGet packaging support

Getting Started

Prerequisites

  • .NET Framework (compatible with the target version in .csproj)
  • Visual Studio (recommended)
  • A running WebSocket server (e.g., SimpleWebSocketServer backend)

Installation

  1. Clone the repository:

    git clone https://github.com/your-org/SimpleWebSocketServer.SIBS.Front.git
    
  2. Open SimpleWebSocketServer.SIBS.Front.sln in Visual Studio.

  3. Build the solution.

  4. Reference the compiled library or package it via NuGet using:

    nugetPackagePush.cmd
    

Usage

You can instantiate and use the FrontClient class to communicate with SIBS terminals. Here's an example:

var client = new FrontClient("ws://yourserver:port");
client.Connect();

// Send a request
var configRequest = new ConfigTerminalReq { TerminalId = "12345" };
client.Send(configRequest);

// Handle responses...

License

This project is licensed under the terms described in LICENSE.txt.

Support

For support, questions, or suggestions, please open an issue.

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 147 6/5/2025
1.0.1 144 6/4/2025