Use io.socket instead of socket and use the JSON serializer for the socket adapter