chat

Android - Host a server inside local network?

爷,独闯天下 提交于 2019-12-11 18:09:30
问题 I would like to create an application which can interact between devices in a same network. Like D oodle army 2: Mini Militia ., one device will act as Hosting machine and all other devices(in the same network) will connect and chat among the group. Any suggestion and guidance are welcome. Sharing any tutorial for sample application is most appreciated. 回答1: here are some references: Google Play Games Services P2P Connections Cheers! 来源: https://stackoverflow.com/questions/39290829/android

How do I append custom data in the body of a xmpp message in ejabberd

偶尔善良 提交于 2019-12-11 17:56:11
问题 I have set up a chat settong using Pidgin and Ejabberd.I have written down a custom module in ejabberd using user_send_packet : ejabberd_hooks:add(user_send_packet, _Host, ?MODULE, myMessage, 95), The function myMessage is as follows: myMessage({Packet, C2SState})-> PacketType=xmpp:get_name(Packet), case PacketType of <<"iq">>-> ok; <<"presence">>-> ok; <<"message">>-> Sum=2+2, ?INFO_MSG("Sum is ~p~n",[Sum]) end, {Packet,C2SState}. Basically what this function does is that whenever someone

Refresh chat box when new msg received

倾然丶 夕夏残阳落幕 提交于 2019-12-11 17:46:56
问题 I'm new to PHP. I'm going to make a simple web application using PHP, a chat box. I don't know a better way to refresh the chat window as soon as new msg received. The only thing that comes into my mind is refreshing page frequently. I know it's not a good idea. I know how to use AJAX, so I can refresh only the chat box (without refreshing whole page). But in AJAX also, client has to send a request. Is there a way to refresh the chat box by the server when a new msg received? 回答1: The

MultiUserChat Send and Receive Message error

大兔子大兔子 提交于 2019-12-11 17:00:40
问题 I am develop android chat app (xmpp server -prosody- and android smack library) I created group room successfully and invite members but when I try to send message to the group this stanza error appears : <message to='rokayah89@eonaws.com/Roo' from='room31@conference.eonaws.com' id='123' type='error'><error type='cancel'><not-acceptable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></message> my code for send Message: MultiUserChat muc = manager.getMultiUserChat(roomBarJid); Message

Alternative http port?

主宰稳场 提交于 2019-12-11 15:37:38
问题 I want to write a browser-chat and write an own server in c++, because you can not send text between the different instances (chat user) in php and other languages. I have apache running with port 80 and that's why I cant run the "chat http server" on port 80. Some browsers block connection to a http site if it does not use port 80. Does someone knows, what port I should use for this small server for best browser compatibility? Maybe 8080? I could also buy a different IP to run it under :80,

ejabberd: Why is Websocket connection not opening

依然范特西╮ 提交于 2019-12-11 11:07:17
问题 I am trying to make a websocket connection from Strophe.js to Ejabberd but ejabberd is not able to make a websocket connection. Here is the detail: ejabberd version : 16.02 Web socket headers General Request URL:ws://localhost:5280/websocket Request Method:GET Status Code:101 Switching Protocols Response Headers Connection:Upgrade Sec-WebSocket-Accept:BHzI4XS3kPDZJhNt4BVAaGDvv8I= Sec-Websocket-Protocol:xmpp Upgrade:websocket Request Headers Accept-Encoding:gzip, deflate, sdch Accept-Language

Android : Object cannot be added to an existing List as its not original thread

坚强是说给别人听的谎言 提交于 2019-12-11 10:50:53
问题 I am working on an Android project in which I am working on chat functionality. In this, whenever a new message is received, I have to touch(literally) the screen, then only the new message can be seen. Also, for the first time, I get the below mentioned error. How can I add the object to already existing list. Any help would be nice. Thank you. I get the latest message in ChatListener , which then is forwarded to a method which willtry to add it to the adapter. Entire stacktrace : 03-31 14

Android chat application emoji's issue

我与影子孤独终老i 提交于 2019-12-11 10:09:18
问题 I am working on Android chat application. Now I want to send emoji's in my chat module. How can i implement emoji' in chat application? Please guide me for this app. If there is any API for this app then also suggest me. Thanks public void callAsynchronousTask() { final Handler handler = new Handler(); timer = new Timer(); TimerTask doAsynchronousTask = new TimerTask() { @Override public void run() { handler.post(new Runnable() { public void run() { try { new GetSingleChat(Chat_Detail_Single

Is there a simple php compatible video chat service? [closed]

北战南征 提交于 2019-12-11 09:39:58
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I have a client that has an existing CMS and he'd like to pair two of his members at a time to engage in video chat for a tutoring service. Is there a service out there that is php-compatible that would allow for a seamless integration, meaning that the user wont have to create a 2nd account with the video chat

Remote Client-Server Application cannot accept incoming messages

江枫思渺然 提交于 2019-12-11 08:16:59
问题 In my .Net class, we are making a simple chat application. Our professor gave us a sample code as follows: SERVER: TcpChannel channel = new TcpChannel(8085); ChannelServices.RegisterChannel(channel); RemotingConfiguration.RegisterWellKnownServiceType(typeof(RemoteObject), "myobject", WellKnownObjectMode.Singleton); Console.ReadLine(); CLIENT: TcpChannel channel = new TcpChannel(); ChannelServices.RegisterChannel(channel); RemoteObject remoteObject = (RemoteObject)Activator.GetObject(typeof