Skip to content

paulanthonywilson/binary-websockets-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starjumps

Example Phoenix application illustrating using a custom `Phoenix.Socket.Transport implementation to send binary messages over a websocket. It alternates two images to show a stick figure doing star jumps.

For a detailed description see the tutorial post, which is here.

A Content Security Policy has been added for the purposes of this post.

Installation and running

This is a standard Phoenix install so mmake sure you have Elixir and Node installed.

git clone git@github.com:paulanthonywilson/binary-websockets-example.git
cd binary-websockets-example
mix deps.get
cd assets
npm install
cd ..
iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

About

Simple example of using binary websocket messages within Phoenix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published