Fix for "expected 2 args, got 1" for socket win and lose handlers