Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.

Commit ae4c925

Browse files
committed
Clarify, cleanup, remove license from source files
1 parent 0e79060 commit ae4c925

File tree

2 files changed

+5
-47
lines changed

2 files changed

+5
-47
lines changed

lib/frame.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
1-
/*
2-
frame.js - Frame object
3-
4-
Copyright (c) 2010, Benjamin W. Smith
5-
All rights reserved.
6-
7-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
8-
9-
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
10-
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or
11-
other materials provided with the distribution.
12-
* Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software
13-
without specific prior written permission.
14-
15-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
17-
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19-
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
20-
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21-
*/
22-
231
// ## frame
242
//
253
// The `Frame` module provides an object representation of a `Stomp` frame.

lib/stomp.js

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
1-
/*
2-
stomp.js - STOMP Protocol in node.js
3-
4-
Copyright (c) 2010, Benjamin W. Smith
5-
All rights reserved.
6-
7-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
8-
9-
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
10-
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or
11-
other materials provided with the distribution.
12-
* Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software
13-
without specific prior written permission.
14-
15-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
17-
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19-
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
20-
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21-
*/
22-
231
// ## stomp
242
//
253
// The `Stomp` module provides you with a client interface for interacting with STOMP messaging brokers
@@ -40,6 +18,8 @@
4018
//
4119
// If debug is set to true, extra output will be printed to the console.
4220

21+
// ## Helpers to handle frames, and do parsing
22+
4323
var net = require('net'),
4424
tls = require('tls'),
4525
sys = require('util'),
@@ -49,7 +29,6 @@ var net = require('net'),
4929
utils = new stomp_utils.StompUtils(),
5030
log = null;
5131

52-
// ## Helpers to handle frames, and do parsing
5332

5433
function parse_command(data) {
5534
var command,
@@ -273,6 +252,7 @@ function Stomp(args) {
273252
this['client-id'] = args['client-id'] || null;
274253
};
275254

255+
// ## Stomp is an EventEmitter
276256
Stomp.prototype = new process.EventEmitter();
277257

278258
// ## Stomp.connect()
@@ -285,7 +265,7 @@ Stomp.prototype.connect = function() {
285265

286266
// ## Stomp.handle\_new_frame()
287267
//
288-
// **Handle frame based on type**
268+
// **Handle frame based on type. Emit events when needed.**
289269
//
290270
// Takes a `Frame` object
291271
//
@@ -320,7 +300,7 @@ Stomp.prototype.handle_new_frame = function(this_frame) {
320300
};
321301

322302
//
323-
// ## `Stomp.disconnect()`
303+
// ## Stomp.disconnect()
324304
//
325305
// **Disconnect from STOMP broker**
326306
//

0 commit comments

Comments
 (0)