Skip to content

nathanielgraham/wsserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wsserver is a template for building full-featured websocket server applications

Features

  • command-line tool for issuing commands to the server
  • simple user database and associated methods for registering, logging-in and so forth.

Starting the server

Issue the following command from the project path in your terminal:

morbo script/wsserver

Starting the wsshell command-line tool

script/wsshell.pl

Issuing commands with wsshell

wsshell accepts JSON formatted commands from standard input in the format { "command":"", "param1":"one", "param2":"two", ... } For example:

ws://0.0.0.0:3000/websocket> { "command": "whoami" }

Prerequisite debian packages

libreadline-dev build-essential cpanminus libterm-readline-gnu-perl libdbi-perl sqlite3 libsqlite3-dev libmoo-perl libdigest-sha-perl libsql-abstract-perl libev-perl libdbd-sqlite3-perl libmojolicious-perl

Prerequisite CPAN modules

Mojo::SQLite DateTime::Event::Cron

About

websocket server template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published