Function publicWsRequest