split web socket handler from http handler