javascript - What does mean "Server(srv:http#Server, opts:Object)" in socket.io api doc? -
mentioning above, want know meaning of special character in socket.io api document, link below. https://github.com/automattic/socket.io#serversrvhttpserver-optsobject
at document, title use #, :, srv, , can't understand mean.
another question is, know tutorial or guidance post of socket.io? official document has few examples , explanation insufficient me.
thanks.
i've spent last 12 weeks building production app using socket.io, , feel documentation frustrations.
dave's answer going tell regarding actual command.
regarding decyphering documentation:
- the colon ( : ) used specify type of parameter being accepted.
- hashtag ( # ) seems represent properties of particular object.
- srv i'm not sure, i'm guessing refers particular serve method you're opting use.
if i'm correct srv, why? specific syntax use bind socket.io can vary depending on other npm modules you're using. documentation on socket.io shows there's different ways go this.
Comments
Post a Comment