I am looking into an alternative solution to my jQuery and Ajax alerting feature in my MVC4 app. I have stumbled across SignalR which looks like it can solve my solution but where I hear you can broadcast to a certain client and not all, I cannot seem to find an example.
Basically all I want to know is:
On set up can the clientID be the applications UserID on login?
Are you able to broadcast to specific roles and/or a list of userID's
Are there are any examples that can help demonstrate the above?
Thanks in advance
With SignalR you can manage your own user identities. SignalR represents each user with a ConnectionId but it is ultimately up to the dev to map that to an existing user profile.
Yes, you are able to broadcast to groups or specific clients. You can add clients to groups and then send single messages to multiple people simultaneously or you can send to a specific client.
As noted in the comment JabbR is an excelent example. Also for a quick start on getting introduced to SignalR check out the Quick Start Hubs page. Lastly SignalR is open source so check out the source and the wiki.
Related
I don't even know what to look for. I tried using the directory API to accomplish this however I was not lucky. I have a service account key created so that my console app (which will become a azure web job) doesn't have to approve any permissions...
Can someone help with direction? I just don't even know where to start...
Depends where you want to start. There are probably a few libraries that will emulate the IMAP or POP3 protocols for you.
However you can also code the following protocols fairly easily.
https://code.msdn.microsoft.com/windowsdesktop/Simple-IMAP-CLIENT-b249d2e6
This example should get you started for IMAP, and POP3 will follow similar protocols.
EDIT:
I misunderstood the question. I was looking at gmail groups and I think I understand what you're trying to do. Retrieving emails from a group isnt really possible as the emails aren't shared. All a gmail group is, is a distribution list which sends emails to all the attendees in the list.
What i would do now is create a new Gmail account, and add it to the work group and have it receive all the emails. Use the Google SDK or the self created protocol to retrieve all the messages manually from the message box.
Can anyone guide me, where to find servicestack server sent event sample code.
First I explain my issue. I have created a restful service(using servicestack framework) to pull down list of emails for inbox folder using afterlogic mailbee object(external product). Now, each time if I do a pull, it takes more time to load list of emails because I am pulling down message body too.
Now I want to send down list of message headers first in the service, and then want the message body to load, because it take more time to pull down from imap object. I see server sent event is the only option here. If someone has a better solution for this, please suggest.
Now, if I have to use servicestack server sent events, I am unable to get any sample code, which I can look upon to implement in my case.
Please ask, if there is more clarification needed in my question.
Thanks for your time.
There is a sample for your requirement.
It is called Chat (it uses SSE).
Otherwise another project called EmailContacts can help you to develop the email app.
Server Events is to enable server/push real-time communication, if you want to optimize page loads you should separate your calls into 2 Services:
Fetch absolute minimum to render page
Fetch full details on demand
This will be the 3rd time attempting this question. I figure some stuff out as I go along, and then I get stuck at a different place, but I probably will need help with my final two problems.
I was given a task to create a IM solution for our company that will work with apps like IM+ etc.
A bit of background on what is required:
A person will use a IM app on his phone, or our website that will be setup to connect to our server.
I wrote a plugin that as soon as somebody connects to the server, a chat session will be initiated with a bot that will ask for some information.
After the bot identified the customer, I would like to "transfer" the chat session to a human that will be logged in on the server as well. This is Problem 1 Is it possible to "transfer" a chat session to somebody else?
My second problem is this.
Most of the times a customer will not be registered on Openfire as a user. I've allowed for anonymous login on the server, but I can't seem to get it to work. I've downloaded jabber-net client, and the bot is currently using asgXMPP to connect. And if I try to send a null username and password, it does not connect, does not give any errors, nothing.
If anybody can help me out a bit I would appreciate it. I am TOTALLY new to XMPP, and I'm happy with what I've accomplished so far.
Jaques
I can't really answer questions about how agsXMPP or jabber-net work, but: an anonymous session is not the same as a normal session with no password, it uses a different authentication mechanism (SASL ANONYMOUS), so you'll have to see whether those libraries support it, and how to request they use it.
For transferring chat sessions - there isn't really any sort of 'chat session' going on, it's just a series of messages. In principle you just need to send a stanza to the client asking it to talk to someone else instead of the bot once the bot's done with it. If you want to then forward the conversation history on to the new chat partner there's XEP-0297 that you could usefully apply for this.
Live Chat is a very famous tool on websites, and the operators use a special web/windows interface to talk to the clients.
What I want to implement is to specify some email accounts, and when the client click's the live chat and starts typing, his/her instant messages are delivered to the available email account. My operators can talk back to them as if they are on their friends list.
I don't need to require any login or registration for clients to use this Live Chat.
So are there any ideas about how to implement such a thing? Are there any good third-party-modules that already do that?
Would MSNP-Sharp be suitable? I haven't used it but it talks about provisioned accounts for bots, which is what you are basically doing.
Otherwise you would have to use it and create several Live IDs that are automatically used by the website to talk to your operators. Each user that uses the chat would be temporarily assigned that LiveID so you would have to ensure you had enough IDs to cover active chat users.
I don't know if what your looking for is possible. To connect to live messenger I believe always requires registration.
If you just want a LiveChat module, this might help http://livechatstarterkit.codeplex.com/
Take a look at samples for Messenger Connect - http://archive.msdn.microsoft.com/messengerconnect there is one that shows how to implement chat on web application.
I would like to know what is the possibilities to programmatically change data on Exchange Server?
with Exchange Web Service (EWS) can I (change means add/edit/delete):
change data on Exchange Server for other users?
change Global Address List?
if not, how I can do that programmatically?
we have a system that we need to make it communicate with Exchange Server to do different tasks, related to calendar, email, GAL
what is the best practice and approach I should think about?
cheers
I dont't know what about GAL, but surely You can manage users calendars(adding meeting,s adding taksks, ...) and emails(reading, sending etc.).
To manage other user accounts You have to enable impersonation.
Some time ago I wrote two posts on my blog how to impersonate Exchange Service Binding and how to add an appointment to any users calendar in Exchange. I won't paste the code here because it makes no sense, just here You have links if You're interested:
Impersonation
Creating appointment
But now it's easier way to achieve the same results as above, but with less lines of code thanks to Exchange Web Services Managed API 1.1 SDK. So, if You want to enable communication with excahnge You should read more about this API and see if it suits You and Your demands.