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
<PackageReference Include="SimpleWebSocketServer.SIBS.Front" Version="1.0.2" />
<PackageVersion Include="SimpleWebSocketServer.SIBS.Front" Version="1.0.2" />
<PackageReference Include="SimpleWebSocketServer.SIBS.Front" />
paket add SimpleWebSocketServer.SIBS.Front --version 1.0.2
#r "nuget: SimpleWebSocketServer.SIBS.Front, 1.0.2"
#:package SimpleWebSocketServer.SIBS.Front@1.0.2
#addin nuget:?package=SimpleWebSocketServer.SIBS.Front&version=1.0.2
#tool nuget:?package=SimpleWebSocketServer.SIBS.Front&version=1.0.2
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 logicModels/
– Data models for various requests and responses (e.g.AmountData
,CardData
,CustomerData
)Enums/
– Common enums used throughout the projectApp.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
Clone the repository:
git clone https://github.com/your-org/SimpleWebSocketServer.SIBS.Front.git
Open
SimpleWebSocketServer.SIBS.Front.sln
in Visual Studio.Build the solution.
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.