Skip to content

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

Stars

13 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages