using socket io in place of ws