Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Chrome >= 30 #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/stomp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/stomp.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/stomp.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ class Client
# };
debug: (message) ->
window?.console?.log message

# Utility method to get the current timestamp (Date.now is not defined in IE8)
now= ->
Date.now || new Date().valueOf

# Base method to transmit any stomp frame
_transmit: (command, headers, body) ->
out = Frame.marshall(command, headers, body)
Expand Down Expand Up @@ -362,7 +362,7 @@ class Client
abort: ->
client.abort txid
}

# [COMMIT Frame](http://stomp.github.com/stomp-specification-1.1.html#COMMIT)
#
# * `transaction` is MANDATORY.
Expand All @@ -377,7 +377,7 @@ class Client
@_transmit "COMMIT", {
transaction: transaction
}

# [ABORT Frame](http://stomp.github.com/stomp-specification-1.1.html#ABORT)
#
# * `transaction` is MANDATORY.
Expand All @@ -392,7 +392,7 @@ class Client
@_transmit "ABORT", {
transaction: transaction
}

# [ACK Frame](http://stomp.github.com/stomp-specification-1.1.html#ACK)
#
# * `messageID` & `subscription` are MANDATORY.
Expand Down Expand Up @@ -459,7 +459,7 @@ Stomp =
# This hack is deprecated and `Stomp.over()` method should be used
# instead.
klass = Stomp.WebSocketClass || WebSocket
ws = new klass(url, protocols)
ws = new klass(url)
new Client ws

# This method is an alternative to `Stomp.client()` to let the user
Expand Down