https://github.com/mikeduglas/websockets
Web Socket Server and Client implemented in C# and Clarion for the modern version 13 of the WebSocket protocol.
https://github.com/mikeduglas/websockets
clarion websocket-protocol
Last synced: 3 months ago
JSON representation
Web Socket Server and Client implemented in C# and Clarion for the modern version 13 of the WebSocket protocol.
- Host: GitHub
- URL: https://github.com/mikeduglas/websockets
- Owner: mikeduglas
- Created: 2017-11-14T13:31:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-05-23T15:08:01.000Z (almost 4 years ago)
- Last Synced: 2025-06-13T05:47:58.514Z (11 months ago)
- Topics: clarion, websocket-protocol
- Language: HTML
- Homepage:
- Size: 5.06 MB
- Stars: 3
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web Sockets
Web Socket Server and Client implemented in C# and Clarion for the modern version 13 of the WebSocket protocol.
Based on CodeProject's article [WebSocket Server in C#](https://www.codeproject.com/Articles/1063910/WebSocket-Server-in-Csharp).
## WebSocket server
- SSL support
## WebSocket client
- can be written in Clarion, JavaScript, and so on.
- untrusted connections allowed
### Real chat server and client ("webchat" folder).
- Server: default port 88. To change this behaviour, edit ChatServer.INI.
Copy WebSockets.dll file from \BIN into CharServer folder before running the server.
- Client: if a server is running on same machine, client's app can connect to that server using "localhost": ws://localhost:88/chat. (In my home network I can use
ws://192.168.1.2:88/chat host address.)
Copy WebSockets.dll, EasyHtml.dll files from \BIN into CharClient folder before running the client.

### How to test:
- Start TestServer.exe. To enable SSL, set following INI settings:
port=443
certfile=mycert.pfx
certpwd=mypassword
for web "chat" client:
- Open http://localhost:88/client.html page (or https://localhost/wssclient.html if SSL enabled) in web browser, file TestServer\web\client.html will be loaded;
- type something in entry field and press "Send". A text you typed in will be send to the server, server will send it back to the client in upper case;
you'll see the response in web browser.
for Clarion "chat" client:
- run TestClientSrc.exe;
- press "Connect" to connect to the server;
- send some text, server will send it back to the client in upper case;
- send a file, server will inform about file received.
for Clarion "people" client:
- run people.exe (standard app from Clarion examples);
- run another copy of people.exe from different folder (so that 2 exe copies will connect to 2 different databases PEOPLE.TPS);
- open People browse in each running copies;
- Make database changes in one of people app (insert, update or delete records). You will see a message in another running app, that there is pending changes,
and you're able to synchronize 2 databases.
Under the hood: first "people" client sends db changes to the server, the server sends these changes to all other "people" clients.
### Requirements
- C6 and higher, ABC/Legacy
- Microsoft .NET 4.0
- EasyCOM2INC v2.14 classes and templates (free download from http://ingasoftplus.com)
- Version 13 of the WebSocket protocol
### Contacts
-
-
[Buy now](https://www.clarionshop.com/checkout.cfm?pid=1673&q=1&)