Start the infinite encoder thread

Signed-off-by: Umair Khan <omerjerk@gmail.com>
Server : use websockets instead of socketio

Signed-off-by: Umair Khan <omerjerk@gmail.com>