I was given a task of writing a server socket, which would respond to different url paths. Each url path should call a specific method on the server. For example:
http://localhost/init
http://localhost/method1
http://localhost/method2
I don't know if this is possible with sockets and I also think this should be possible with web (REST) services. Is this also possible with sockets?
Looking at server side socket examples [1], they all have a fixed url.