Example project which shows how to create a WebSocket server using Spark.
Server is set to listen on ws://localhost:8080/socket and will respond to both binary and text messages by echoing the contents back to the sender.
Clone the project and run gradle run
to start it.