Add webSocketKeepAliveTime setting to aid testing.
Add comms keep alive tests.
Remove redundant assignment.

The publish immediately overwrites this time so there isn't much
point setting it.
Merge pull request #313 from hindessm/more-comms-tests

More comms tests