Skip to content

ben-duffin/xServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xServer

WebSockets based notifications stack - pronounced 'zerver'

  • From the command line: php server.php to start the server listening
  • Verbosity and Enforced - *use php server.php verbose=true|false enforce=true|false (default true, false) when starting the sever
  • From the client: connect over your chosen WebSockets client! There is an example one included

The command line arguments must be used together in order to use enforce command. The enforce command ( if true ) will force the server to delete any existing PID lock files and to kill the corresponding process beofre loading itself up.

Remote Commands

  • "list" to view the stack
  • "push:xxxxxx" to add to stack
  • "pop:xxx" to view message index number xxx
  • "memo:xxxxx" to broadcast message to all clients
  • "exit" to disconnect for the server
  • "elevate:xxxxx" where xxxxxx is the password to elevate client to root and allow server commands below

Server Commands

  • "stop" to pause server from accepting new connections
  • "start" to resume server allowing new connections
  • "shutdown" to close down the server
  • "info" to view the currently connected clients information
  • "kill:xxx" to kill a client where "xxx" is the client id

About

WebSockets based Notifications layer, using MemCached

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages