fixes #315 WebSocket message handling errors
fixes #315 WebSocket message handling errors

This also gives a performance benefit to WebSocket, by making
the completion logic run synchronously.

nanomsg/nng,nanomsg/nng,nanomsg/nng,nanomsg/nng