websocket: add an option to specify Read/Write buffers