Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8162217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:39:35+00:00 2026-06-06T18:39:35+00:00

I am coding a message distribution system. Server is ColdFusion (CF) 10, using the

  • 0

I am coding a message distribution system. Server is ColdFusion (CF) 10, using the new <cfwebsocket> feature set. Client will be written in Delphi 2009.

If I write the client in ColdFusion (using the <cfwebsocket> tag) things work fine: I can send messages between two clients. So the server side appears to be working.

No such luck with a Delphi client. I’ve tried two component libraries so far (Delphi on Rails and sgcWebSockets). Both seem to establish a connection to the CF server, but messages are not sent or received. I’m fairly certain Delphi is making a connection to the server as no exceptions are thrown if I specify the correct address, whereas I get an exception if I specify a different port or URI.

I think the missing link is in my understanding of “channels”. It’s easy in CF: you specify the channel to subscribe to or send messages to and it works. But the concept of “channels” doesn’t seem to exist much outside of ColdFusion. I’ve searched w3.org, Google, etc, and don’t see much about channels in the HTML5 WebSocket specs. Some references, but nothing clear, especially in the examples.

In summary, my questions:

  1. Are “channels” part of the standard WebSocket API, and if so,
  2. How do I subscribe to a channel using one of the Delphi WebSocket libraries I mentioned? Shouldn’t it be as easy as ws://[server]:[port]/[channel]?
  3. How to debug WebSocket connections & traffic on the CF server?

Many thanks. This is my first post on StackOverflow; apologies if it’s a tad long.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:39:37+00:00Added an answer on June 6, 2026 at 6:39 pm

    Thanks for the tips! I have done a bit of debugging since I posted the question and have discovered some answers.

    Are “channels” part of the standard WebSocket API?

    From what I can tell, no. Channels appear to be a ColdFusion-specific concept.

    How do I subscribe to a channel using one of the Delphi WebSocket libraries I mentioned? Shouldn’t it be as easy as ws://[server]:[port]/[channel]?

    As mentioned in my original question, Delphi (using the TsgcWebSocketClient component) was connecting successfully to the ColdFusion (CF) WebSocket server. However, I found I was omitting a step: subscribing to the CF “channel”. I discovered this by using Microsoft Network Monitor to compare the Delphi client traffic to the CF client traffic. The CF client was sending an additional string to the server after connecting:

    {"ns":"coldfusion.websocket.channels","type":"welcome","authKey":"6DD10C406710970271EDA2295C409D38","subscribeTo":"signals","appName":"Test"}
    

    This subscribes the client to the “signals” channel. So, I added the following line to my Delphi code after a connection was made:

    sgcWebSocketClient.WriteData( '{"ns":"Delphi","type":"welcome","authKey":"6DD10C406710970271EDA2295C409D38","subscribeTo":"signals","appName":"Test"}' );
    

    and the Delphi client was immediately able to receive messages from the CF “signals” channel.

    FYI, here is how to send a message (“Hello, World!” in this case) from the Delphi client to the “signals” channel:

    sgcWebSocketClient.WriteData( {"ns":"Delphi","type":"publish","channel":"signals","data":"Hello, World!","appName":"Test"}
    

    How to debug WebSocket connections & traffic on the CF server?

    I found Microsoft Network Monitor, with a port filter applied, was the easiest method. It does not currently support loopback/localhost monitoring, so I used another computer on our LAN to generate the traffic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am coding for a Netty based Notifying Server, which takes in Message Buffer
So I am coding this client/server program. This code is from the client side.
I am using this code to send email var message = new MailMessage(abc@somedomain.com, administrator@anotherdomain.com);
Coding in Delphi, attaching an OnKeyPress event handler to a TStringGrid: The OnKeyPress event
I've recently updated to a testing distribution, which is now using GCC 4.4.3. Now
Hai i want to send the message via coding is it possible? mobile number=xxx
I am new to NHibernate/FluentNHibernate. I use FNH for my coding now as I
I need to display error message on model in rails, my coding on model
I'm trying to set error message if something is wrong, but I get This
In an app I'm coding I would like to make an alert message to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.