NetTalk Central

Author Topic: Post messages to the client  (Read 6048 times)

jari@softmade.fi

  • Full Member
  • ***
  • Posts: 131
    • View Profile
    • Email
Post messages to the client
« 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

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Re: Post messages to the client
« Reply #1 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile

jari@softmade.fi

  • Full Member
  • ***
  • Posts: 131
    • View Profile
    • Email
Re: Post messages to the client
« Reply #3 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Post messages to the client
« Reply #4 on: March 30, 2016, 11:52:04 PM »
see User GRoup webinar #96.
http://www.capesoft.com/accessories/NetTalkUserGroup.htm

cheers
Bruce

jari@softmade.fi

  • Full Member
  • ***
  • Posts: 131
    • View Profile
    • Email
Re: Post messages to the client
« Reply #5 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Post messages to the client
« Reply #6 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

jari@softmade.fi

  • Full Member
  • ***
  • Posts: 131
    • View Profile
    • Email
Re: Post messages to the client
« Reply #7 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


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Post messages to the client
« Reply #8 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