jQuery-URL-Parser is one great utility to parse urls, and provide access to attributes, querystrings.
p.segment return all the pathes in the url
param() return all the query string and values
jQuery-URL-Parser is one great utility to parse urls, and provide access to attributes, querystrings.
p.segment return all the pathes in the url
param() return all the query string and values
following the last post, it’s extremely easy to do a pub/sub empowering the zeromq.
IN C#, we setup one socket to pub type, and bind to one tcp port. IN the Node.js and Another C# client, we can create a socket with type Sub. then subscript the topics we are interested.
then in the Node.js, create one special socket sub, and remember to call subscribe with the interested topic.
C# subscriber code,
Run the app, from c#, we can see message published and received,
from node.js client,
ZeroMQ comes with a lot binding, here is a quick tutorial to pickup the C# one.
Create one console application, and search Zeromq in the Nuget package, you will see one for x64 and one for x86.
then we can create a zemomq server and one client which send message to the server,
Run the application,
for the Node.js, we can install one module called , zmq which is the zeromq binding for node.js
then create one simple js code and send a message to the 5555 service,( using buffer as the encoder for utf8)