The backend server should run with the command:
sudo /usr/libexec/ouistiti/thrift -R /srv/www/websocket/ -n thrift -u www-data
This Java Script example uses tutorial.thrift and a Thrift server using JSON protocol and HTTP transport.