do null writes
add support for ws:// and wss://