FCF 2.0 development in progress...
> > > > > >
[News] [Packages API] [Downloads] [Donate to the project] [Contacts]

port property from fcf.RouteInfo class

int port

Class: fcf.RouteInfo

File: fcf-framework-core:fcf.js

Available from version: 2.0.2

Port number if specified in the URL

Example:

let ri = new fcf.RouteInfo("http://localhost:8080/index.html?q1=value1&q2=%7B%22k1%22%3A1%7D#ancor_value"); console.log(ri.port);

Output:

8080