Finished move from ajax to websockets.