Permalink
Browse files

Advertise deprecated API

  • Loading branch information...
majek committed Oct 20, 2011
1 parent f70d5f3 commit d5bcf20a320078e0d0765927b3eb08d0b5853665
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/sockjs.coffee
View
@@ -180,6 +180,7 @@ class DeprecatedServerWrapper extends events.EventEmitter
@srv = new Server(options)
installHandlers: (http_server, handler_options) ->
+ @srv.options.log('info', 'You\'re using deprecated API, shame on you.')
@srv.on 'connection', (conn) =>
wrapped_conn = new DeprecatedConnectionWrapper(conn)
@emit('open', wrapped_conn)

0 comments on commit d5bcf20

Please sign in to comment.