Sorry for the poorly formatted answer, it has been updated.
Since I am very new to web sockets, I didn't even understand the error. After some sleuthing, https://en.wikipedia.org/wiki/WebSocket, web sockets usually run on port 80 or 443.
I tried,
In[1]:= socket = SocketConnect["wss://ws-feed.gdax.com:80"]
During evaluation of In[1]:= SocketConnect::addrspec: The host specification wss://ws-feed.gdax.com:80 is wrong because the port number conflicts with the scheme specification
Out[1]= $Failed
Then after finding web sockets run on port 443 tried that.
In[2]:= socket = SocketConnect["wss://ws-feed.gdax.com:443"]
During evaluation of In[2]:= SocketConnect::addrspec: The host specification wss://ws-feed.gdax.com:443 is wrong because the port number conflicts with the scheme specification
Out[2]= $Failed
Still no success.
This works,
address = HostLookup["wss://ws-feed.gdax.com"]
socket = SocketConnect[{address[[1]], 443}]
OR
address = HostLookup["wss://ws-feed.gdax.com"]
socket = SocketConnect[{address[[2]], 443}]
OR
thanks to the comment,
socket = SocketConnect["ws-feed.gdax.com:443"]
This works as well to non secure
socket = SocketConnect["ws-feed.gdax.com:80"]
After successful connection, for this API, a subscribe command is needed. I am having trouble getting a response. Will post another question.
socket = SocketConnect["ws-feed.gdax.com:443"]which also opens a socket without errors (I have not tried to really use it, though)... $\endgroup$