added "wsstream.setOpcode()" with tests