fix: store client connection if there's no message
add: test for waiting for new messages