Sending many messages with WS, and minor bugs fixed