update to support websockets, html client