socket framework mostly in place for chatrooms