Sockes emit, serialize to json