How can add vector layer from geoserver?

How can add vector layer from geoserver in tomtom and their attributes?

I’m not sure what geoserver offers, but you can add vector tiles layer.
Here is a documentation to related methods in js: SDK docs
And here is a style specification: Map Style Specification