added clientside socket handling, last commit before trying angular