websockets api complete; attempt to integrate sly dom library