authorization on ws

fully ready server with chat
thanks to iliakan