Case sensitivity and ColdFusion 10 WebSockets

During my presentation yesterday, a user asked about case sensitivity and WebSockets. The short answer is - they are not. Given a ColdFusion application that defines a channel called “news”, you can ignore case everywhere. That includes:

  • The cfwebsocket tag subscribeTo argument
  • The JavaScript object's publish and getSubscriberCount methods
  • Server-side functions like wsGetAllSubscribers and wsPublish
  • Subchannels. You can subscribe to news.sports and then broadcast to NEWS.SPORTS and the right people get the message. </ul> There are a few more things I could test, but I think it is pretty clear that case sensitivity is not an issue. There is one small nitpick to this. When you define the name of the JavaScript variable in the cfwebsocket tag, that string is case-sensitive. That makes sense as JavaScript variables are case sensitivite. But it looks like all WebSocket channels are going to be case insensitive.
Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate for Extend by Auth0. He focuses on serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support.

Lafayette, LA https://www.raymondcamden.com

Comments