A simple ByteToMessageDecoder used to decode the flash policy file request. A complete WebSocket Server code is included. I have coded the decoder so that it works on the same HTTP server you are using for serving HTTP requests.