Simple webserver

pozz pozzugno at gmail.com
Tue Oct 24 12:01:39 EDT 2023


Il 19/10/2023 00:09, Janis Papanagnou ha scritto:
> 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.
> 
> I found a Python sample[*] but I am neither familiar with
> Python nor with the 'simple_websocket_server' package that
> is used in that sample code. But the code looks so simple
> that I'm considering to learn and use Python for the task.
> 
> The requirements I have are quite simple; I want to get the
> client "address"/identifier from an incoming message, store
> it in a list, and send responses to all active clients for
> which addresses have been stored.
> 
> Can anyone tell me whether a simple extension of that "echo
> incoming message" sample[*] would be easily possible with
> Python and with that 'simple_websocket_server' package used?
> 
> Thanks for any hints (or search keywords, or code samples)!
> 
> Janis
> 
> [*] https://pypi.org/project/simple-websocket-server/

I'm not sure, but MQTT protocol could help for this application.


More information about the Python-list mailing list