Core: fix generic signed/unsigned vars

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
WebSocket: validate read return on broadcast routine

Signed-off-by: Eduardo Silva <edsiper@gmail.com>