make sockemit explictly check for ws state