add iswebsocket method