Calling java functions via websockets implemented