Coder Social home page Coder Social logo

seanpm2001 / fivetechsoft_wsserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fivetechsoft/wsserver

1.0 2.0 0.0 1.02 MB

Harbour websocket server

Home Page: https://fivetechsoft.github.io/wsserver/

License: Other

xBase 65.98% HTML 34.02%

fivetechsoft_wsserver's Introduction

Harbour websocket server

Here you have a first prototype of a Harbour websocket server:

https://github.com/FiveTechSoft/wsserver

Basically this server allows you to communicate between a web browser and a Harbour app (no matter where it is!), using websockets.

In this version the websocket server implements an echo service, just to check that it properly works. It sends you back whatever you may send to it. You can easily change its source code to implement any other conversation you may have in mind. It uses the port 9000 but you may use any other, just remember to change it in both wsserver.prg and in client.html

How to test it:

  1. Build wsserver.exe using hbmk2 wsserver.prg -mt. Use the hbmk2 flag -mt to build it multithreading!

  2. Run wsserver.exe. It will display all messages that arrive to it. Press esc any time to end it.

  3. Click here

  4. Whatever you send to the server from the web page, it will get back to you (sort of a karma reminder :-)

  5. Write exit to tell the server to end your session.

Enjoy it!

fivetechsoft_wsserver's People

Contributors

fivetechsoft avatar trappoti avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.