NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: jari@softmade.fi on March 08, 2016, 12:46:28 AM

Title: Post messages to the client
Post by: jari@softmade.fi on March 08, 2016, 12:46:28 AM
Hello

I want to send some messages to the client.
Messages can be   for example: "Call the office" or "You have new orders"
How can I do this with webserver?

Regards Jari
Title: Re: Post messages to the client
Post by: Djordje Radovanovic on March 08, 2016, 12:16:55 PM
NT 9 Server (do not know what version) has new feature. WebSocket. This is what you need. I have never use it but it looks like what you are looking for.

Djole
Title: Re: Post messages to the client
Post by: Bruce on March 08, 2016, 10:03:20 PM
Indeed, see
http://www.capesoft.com/docs/NetTalk9/NetTalk9Upgrade.htm#WebSockets
Title: Re: Post messages to the client
Post by: jari@softmade.fi on March 30, 2016, 08:04:36 AM
Hello

Now I have NetTalk App 9.06 and Cryptonite :)
I have done these steps
1)  Add the Cryptonite global extension to the application
2)   Go to the WebServer procedure, Extensions, Settings, Scripts tab and tick on the WebSockets option.

But the following steps are not very obivious to me

Is there example app about this?

Thanks

Jari
Title: Re: Post messages to the client
Post by: Bruce on March 30, 2016, 11:52:04 PM
see User GRoup webinar #96.
http://www.capesoft.com/accessories/NetTalkUserGroup.htm

cheers
Bruce
Title: Re: Post messages to the client
Post by: jari@softmade.fi on April 01, 2016, 01:55:22 AM
Thanks Bruce

That works fine if I want to send message to all clients.

How can I sent the message only to one specific client?

Jari
Title: Re: Post messages to the client
Post by: Bruce on April 03, 2016, 10:41:42 PM
Then you would use a SessionValue instead of a Host value.
And you would need to know the session ID of the user you wanted to send the message to.

cheers
Bruce
Title: Re: Post messages to the client
Post by: jari@softmade.fi on April 04, 2016, 09:43:39 PM
Hi Bruce and Marcos  ;D

I also have trouble getting this to work.

As I compiled I get an error: CRYPT32.DLL was not copied to the target directory because it could not be found via redirection lookup - C:\Clarion10\bin\SoftVelocity.Build.Clarion.targets:72,3
I have CRYPT32.DLL in c:\Windows\system32 folder made by Microsoft. Is that OK?

Secondly. In video Bruce is using Field in Field tab. When I use that nothing comes from webserver's self.SetHostValue('c',clock()) command

There is my testing app in attachment

Regards

Jari

Title: Re: Post messages to the client
Post by: Bruce on April 05, 2016, 06:14:59 AM
>> As I compiled I get a [Warning] : CRYPT32.DLL was not copied to the target directory because it could not be found via redirection lookup - C:\Clarion10\bin\SoftVelocity.Build.Clarion.targets:72,3


that's not a problem. It should not copy it as it' is a DLL provided by the OS.

cheers
Bruce