Comparing version 0.0.13 to 0.0.14
@@ -0,1 +1,17 @@ | ||
/************************************************************************ | ||
* Copyright 2010-2011 Worlize Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
***********************************************************************/ | ||
function Whiteboard(canvasId) { | ||
@@ -24,3 +40,3 @@ this.initCanvas(canvasId); | ||
var wsCtor = MozWebSocket ? MozWebSocket : WebSocket; | ||
var wsCtor = window['MozWebSocket'] ? MozWebSocket : WebSocket; | ||
this.socket = new wsCtor(url, 'whiteboard-example'); | ||
@@ -27,0 +43,0 @@ |
@@ -0,1 +1,18 @@ | ||
#!/usr/bin/env node | ||
/************************************************************************ | ||
* Copyright 2010-2011 Worlize Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
***********************************************************************/ | ||
// Enable us to simply require('websocket') from within the examples directory | ||
@@ -2,0 +19,0 @@ require.paths.unshift(__dirname + '/../../lib/'); |
@@ -7,3 +7,3 @@ module.exports = { | ||
"request" : require('./WebSocketRequest'), | ||
"version" : "0.0.13" | ||
"version" : "0.0.14" | ||
}; |
@@ -0,1 +1,17 @@ | ||
/************************************************************************ | ||
* Copyright 2010-2011 Worlize Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
***********************************************************************/ | ||
var extend = require('./utils').extend; | ||
@@ -2,0 +18,0 @@ var util = require('util'); |
@@ -0,1 +1,17 @@ | ||
/************************************************************************ | ||
* Copyright 2010-2011 Worlize Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
***********************************************************************/ | ||
var crypto = require('crypto'); | ||
@@ -125,3 +141,3 @@ var util = require('util'); | ||
this.frameQueue = null; | ||
this.outgoingFrameQueue = null; | ||
this.outgoingFrameQueue = []; | ||
this.fragmentationSize = 0; | ||
@@ -128,0 +144,0 @@ this.bufferList = null; |
@@ -0,1 +1,17 @@ | ||
/************************************************************************ | ||
* Copyright 2010-2011 Worlize Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
***********************************************************************/ | ||
var ctio = require('../vendor/node-ctype/ctio-faster'); | ||
@@ -2,0 +18,0 @@ |
@@ -0,1 +1,17 @@ | ||
/************************************************************************ | ||
* Copyright 2010-2011 Worlize Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
***********************************************************************/ | ||
var crypto = require('crypto'); | ||
@@ -2,0 +18,0 @@ var util = require('util'); |
@@ -0,1 +1,17 @@ | ||
/************************************************************************ | ||
* Copyright 2010-2011 Worlize Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
***********************************************************************/ | ||
var extend = require('./utils').extend; | ||
@@ -2,0 +18,0 @@ var util = require('util'); |
@@ -0,1 +1,17 @@ | ||
/************************************************************************ | ||
* Copyright 2010-2011 Worlize Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
***********************************************************************/ | ||
function WebSocketRouterRequest(webSocketRequest, resolvedProtocol) { | ||
@@ -2,0 +18,0 @@ this.webSocketRequest = webSocketRequest; |
@@ -0,1 +1,17 @@ | ||
/************************************************************************ | ||
* Copyright 2010-2011 Worlize Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
***********************************************************************/ | ||
var extend = require('./utils').extend; | ||
@@ -2,0 +18,0 @@ var util = require('util'); |
@@ -6,3 +6,3 @@ { | ||
"author": "Brian McKelvey <brian@worlize.com>", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"repository": { | ||
@@ -9,0 +9,0 @@ "type": "git", |
@@ -24,2 +24,7 @@ WebSocket Client & Server Implementation for Node | ||
Documentation | ||
============= | ||
For more complete documentation, see the [Documentation Wiki](https://github.com/Worlize/WebSocket-Node/wiki/Documentation). | ||
Browser Support | ||
@@ -46,2 +51,3 @@ --------------- | ||
----------------- | ||
- Licensed under the Apache License, Version 2.0 | ||
- Protocol version "8" (Draft-08/-09/-10) framing and handshake | ||
@@ -158,7 +164,2 @@ - Can handle/aggregate received fragmented messages | ||
Documentation | ||
============= | ||
For more complete documentation, see the [Documentation Wiki](https://github.com/Worlize/WebSocket-Node/wiki/Documentation). | ||
Resources | ||
@@ -165,0 +166,0 @@ --------- |
#!/usr/bin/env node | ||
/************************************************************************ | ||
* Copyright 2010-2011 Worlize Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
***********************************************************************/ | ||
@@ -3,0 +18,0 @@ var WebSocketServer = require('../lib/WebSocketServer'); |
#!/usr/bin/env node | ||
/************************************************************************ | ||
* Copyright 2010-2011 Worlize Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
***********************************************************************/ | ||
var WebSocketClient = require('../lib/WebSocketClient'); | ||
@@ -3,0 +19,0 @@ |
#!/usr/bin/env node | ||
/************************************************************************ | ||
* Copyright 2010-2011 Worlize Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
***********************************************************************/ | ||
var WebSocketServer = require('../lib/WebSocketServer'); | ||
@@ -4,0 +20,0 @@ var WebSocketRouter = require('../lib/WebSocketRouter'); |
#!/usr/bin/env node | ||
/************************************************************************ | ||
* Copyright 2010-2011 Worlize Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
***********************************************************************/ | ||
var WebSocketClient = require('../lib/WebSocketClient'); | ||
@@ -3,0 +19,0 @@ |
#!/usr/bin/env node | ||
/************************************************************************ | ||
* Copyright 2010-2011 Worlize Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
***********************************************************************/ | ||
var WebSocketServer = require('../lib/WebSocketServer'); | ||
@@ -4,0 +20,0 @@ var WebSocketRouter = require('../lib/WebSocketRouter'); |
@@ -0,1 +1,5 @@ | ||
// This file was copied from https://github.com/substack/node-bufferlist | ||
// and modified to be able to copy bytes from the bufferlist directly into | ||
// a pre-existing fixed-size buffer without an additional memory allocation. | ||
// bufferlist.js | ||
@@ -2,0 +6,0 @@ // Treat a linked list of buffers as a single variable-size buffer. |
/* | ||
* rm - Feb 2011 | ||
* ctio.js: | ||
* ctio-faster.js: | ||
* This file is a modification of ctio.js that removes all the runtime sanity | ||
* checking for efficiency. | ||
* | ||
@@ -5,0 +7,0 @@ * A simple way to read and write simple ctypes. Of course, as you'll find the |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
286091
7131
165
3
4
1