web sockets, main controller angulara dla puszka