working chat demo
open socket functionality moved to route