socket event is bitwise.