Skip to content

Server demo for Trondheim Developer Conference

Notifications You must be signed in to change notification settings

ZeldaIV/tdc-clj-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tdc-clj

Web server streaming fake football events on a web socket.

The repo contains:

  • An HTTP kit server pushing out messages on a web socket
  • A simple web client listing last 20 messages from server

Server

At that point your server runs at http://localhost:8080/socket

Type (restart!) to reload code and restart server.

Type (stop!) to stop it.

Client

  • Open up a second command shell, type lein figwheel

Your client is now running and can be reached at http://localhost:3449/client

Runtime tweaking

When the server starts, a loop is also started with random events sent every second. This loop can be stopped with (stop-random-forever) and restarted again with (start-random-forever)

To run a predefined sequence of events, run (run-sequence)

About

Server demo for Trondheim Developer Conference

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%