use indexof component for ie8 and below
Merge pull request #157 from goinstant/indexof

use indexof component for ie8 and below
Does not emit close on incorrect socket connection