websockets version 14.0 has some issues in handling connections. downgrading to a version e.g. - 12.0 solves the issue.