added more callbacks for WsServer class