basic ws communication implemented