added standalone example for minimal implementation of ws