add callbacks in ws conn
add test flag to server
use wsconn in tests
add tests for wsconn