sysapps / tcp-udp-sockets

Raw sockets API
85 stars 25 forks source link

Switch the order of host and port for constructor of TCPSocket #53

Open nickdesaulniers opened 11 years ago

nickdesaulniers commented 11 years ago

this makes it easier to reuse code from Node.js in the browser, where Node's API expects port first since the host could be optional (localhost) and optional arguments can't come before required ones.

ClaesNilsson commented 11 years ago

I don't have a strong opinion here and I can do this change if there are no objection from anyone else.