implement w3c compatible ws API for sws