Easthouses scored in added on time to take a 2-2 draw and a share of the points in this League cup fixture.
A goal from Wyllie put the home side in front before O'Connor leveled for the visitors and then Melville doubled their lead but a last gasp added on time free kick from Wyllie saw the Midlothian team rescue a point.
The visitors got the game underway at a cold and breezy Easthouses Park but it was the home side came out of the blocks quickly and could have taken the lead in the second minute when Reece Wyllie found Joseph Queen on the right and after cutting inside he got a powerful shot away which Jamie Ross done well to save with his feet.
Easthouses were on the attack again and Aidan Young found Kieran McDougall on the edge of the box but he shot wide of the right hand post but their next attack was to prove more beneficial.
The whirlwind start by the home side was rewarded in the sixth minute when from eighteen yards out Wyllie opened the scoring after his drive found the far corner.
Spartans had a great opportunity to hit right back but Christian Oroz Storm failed to hit the target with his header after meeting a great ball in from the right only three yards out.
The visitors got on level terms on nine minutes when Angus O'Connor put his side level after a piece of individual brilliance. He picked up the ball just inside the Easthouse's half and ran nearly half the length of the park, out pacing the chasing defenders and then showed great composure to round the out rushing keeper and slot the ball home with a left foot finish.
Easthouses went looking for a quick reply when Wyllie played a long ball into Queen who beat the out rushing Ross but his touch just took the ball out for a goal kick.
The men from Ainslie Park should have hit the front with fourteen minutes on the clock but Storm totally miss kicked his shot from two yards out after being played in by Jonny Devers.
A long distance effort from Blair Melville went harmlessly beyond the right hand post then Melville came close again after getting on the end of a thirty five yard free kick but again his effort went wide of the same post again.
It was ebb and flow and it was Easthouses now looked to attack and it was the home side who were unlucky not to go back in front when Aiden Young came so close after some delightful footwork he produced a superb lob over the keeper to unfortunately see the ball come of the bar.
Lee Anderson produced a fine double save to stop his team going behind after a good move involving O'Connor when he laid off Devers but his shot was blocked by the tall agile keeper and then Lucas Arena Terry effort was turned round the post by Anderson for a corner.
Spartans should have then got their noses in front after a sublime ball in by Terry was headed over the bar from four yards out by Ben Scott.
The visitor's got the goal to go in front that they had been pushing for in the twenty ninth minute through a very strange goal indeed. Melville picked the ball up all off thirty yards out and decided to have a long range effort which seemed a bit optimistic but his low firm strike somehow managed to evade every one in the box and nestle in Anderson's right hand corner of his net.
Easthouse's came back at Spartans and Wyllie shot over the bar from distance then Anderson had to be alert at the other end when Melville played a ball over the top for O'Connor but the big keeper bravely saved at the Spartans man's feet.
A free kick for the home side from thirty yards out resulted in a bit of panic in the Spartans box when the ball played in by Wyllie bounced up just in front of the keeper and came of his chest with Young's follow up strike coming of the keeper and back off him and out for a goal kick.
Wyllie who seemed to be involved with everything for Easthouses was involved in the next chance for his side when he played a great ball into Queen who put his shot wide of the right hand upright with a minute of the half remaining and then they had the final chance of the half when Morgan Rutherford twisted and turned inside the opposition box but his shot was deflected off his own player for a goal kick.