Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An attempt to encapsulate ColdFusion 10 WebSockets in an AMD-complient(ish) module so that they can be used with libraries like RequireJS.

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 .gitignore
Octocat-spinner-32 cfwebsocket.js

ColdFusion 10 WebSocket AMD Compliant(ish) Module


ColdFusionWebSocket( coldfusionAppName [, channel [, headers]] )

The first argument, coldfusionAppName, is the name of your server-side ColdFusion application as determined by the "" value you define in your Application.cfc. If you this is not an easy accessible value, you can always access it using the getApplicationMetaData() method.

Public Methods

  • authenticate( username, password ) :: Promise
  • closeConnection()
  • getClientID() :: Int
  • getSubscriberCount( channel ) :: Promise
  • getSubscriptions() :: Promise
  • isConnectionOpen() :: Boolean
  • off( eventType, callback )
  • on( eventType [, channel], callback [, context] )
  • openConnection()
  • parse( json ) :: Any
  • publish( channel, data [, headers] )
  • stringify( value ) :: JSON
  • subscribe( channel [, headers] )
  • unsubscribe( channel )
Something went wrong with that request. Please try again.