adds client-side socket listener example on client-side