Skip to content

Commit

Permalink
#69 - keep API backward compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
majek committed May 16, 2012
1 parent 06d00a2 commit acfc9f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sockjs.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ class Listener
@app.emit = emit
@app.log('debug', 'SockJS v' + sockjsVersion() + ' ' +
'bound to ' + JSON.stringify(options.prefix))

if @options.heartbeat_delay
@app.log('warn', 'Option "heartbeat_delay" got renamed to '+
'"server_heartbeat_interval". Update your code.')
@options.server_heartbeat_interval = @options.heartbeat_delay

@dispatcher = generate_dispatcher(@options)
@webjs_handler = webjs.generateHandler(@app, @dispatcher)
@path_regexp = new RegExp('^' + @options.prefix + '([/].+|[/]?)$')
Expand Down

0 comments on commit acfc9f8

Please sign in to comment.