• Websockets with shell (server implementation)?

    From Janis Papanagnou@21:1/5 to All on Wed Oct 18 23:13:08 2023
    I am pondering about writing a client/server software with
    websockets as communication protocol. The clients will run
    in browser as Javascript programs and the server may be in
    any (any sensible) programming language running standalone
    to be connected remotely by the browser-based JS clients.

    Is there a library for (or sample server programs in) shell
    that uses websockets for communication?

    (Other language suggestions are also welcome; requirements
    are a) simple to use, and b) few dependencies.[*] Any hints
    and experiences appreciated.)

    Janis

    [*] I've found for example a simple_websocket_server based
    Python code, but I'm lacking Python proficiency to judge
    whether that's a good language for such things.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ed Morton@21:1/5 to Janis Papanagnou on Thu Nov 2 05:40:37 2023
    On 10/18/2023 4:13 PM, Janis Papanagnou wrote:
    I am pondering about writing a client/server software with
    websockets as communication protocol. The clients will run
    in browser as Javascript programs and the server may be in
    any (any sensible) programming language running standalone
    to be connected remotely by the browser-based JS clients.

    Is there a library for (or sample server programs in) shell
    that uses websockets for communication?

    (Other language suggestions are also welcome; requirements
    are a) simple to use, and b) few dependencies.[*] Any hints
    and experiences appreciated.)

    Janis

    [*] I've found for example a simple_websocket_server based
    Python code, but I'm lacking Python proficiency to judge
    whether that's a good language for such things.

    FWIW a few years back I found it easy to implement a client/server with websockets using Go (google Golang) with no previous experience in that language (it's very C-like and there are websockets packages for it).
    The client side was also running Javascript.

    Ed.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)