Skip to content

jqreator/m32_chat_server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

m32_chat_server

Simple chat server for Morserino-32

This server script listens for UDP messages and rebroadcasts them to all other clients.

To "connect" or "make yourself known" to the server, send "hi" message from your Morserino. Server will respond with ":hi" with number of clients connected (1 means you're alone). After that, server will resend all messages from you to all other known clients (you excluded).

If client is inactive (not transmitting) for too long, it will be dropped from the list. This is indicated by ":bye" message sent from the server. To reconnect, send "hi" again.

You can also force disconnection by sending ":bye".

Additional features:

  • empty keepalive UDP packets sent each 10 seconds to avoid NAT timeouts
  • number of clients is restricted (to avoid abuse)
  • small delay is introduced (to avoid abuse)

Caution: UDP keepalive messages, while invisible, prevent your Morserino-32 from auto-shutdown!

About

Chat server for morserino32

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 80.1%
  • Dockerfile 19.9%