basic op code handling for binary and close on websockets