Socket js constructor should accept an optional context