我有一个非常大的地方,我需要的是人们可以互相聊天。我会放置 WiFi 路由器来覆盖整个地方,但由于人数众多,我无法通过该网络提供互联网连接。我应该使用哪种技术?我一直在阅读有关 AllJoyn 的信息,但我不知道这是否对我有帮助。此外,由于人数众多(超过 75,000 人),我无法设置服务器来处理服务,每个连接,一台设备必须是主机,另一台设备必须是客户端。谢谢
问问题
370 次
1 回答
0
如果您想创建自己的应用程序,您可以使用Signalr和Xamarin之类的SignalR 组件。
取自组件页面上的快速使用:
// Connect to the server
var hubConnection = new HubConnection("http://server.com/");
// Create a proxy to the 'ChatHub' SignalR Hub
var chatHubProxy = hubConnection.CreateHubProxy("ChatHub");
// Wire up a handler for the 'UpdateChatMessage' for the server
// to be called on our client
chatHubProxy.On<string>("UpdateChatMessage", message =>
text.Text += string.Format("Received Msg: {0}\r\n", message));
// Start the connection
await hubConnection.Start();
// Invoke the 'UpdateNick' method on the server
await chatHubProxy.Invoke("UpdateNick", "JohnDoe");
或者,有一些应用程序可能已经完成了您想要的操作。例如http://beebeep.sourceforge.net/
于 2016-01-18T23:07:46.520 回答