implement simple server-side share connection
fix bug getting undefined document path
update example to use server-side connection