Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
noVNC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
noVNC
Commits
35f5b11c
Commit
35f5b11c
authored
Jun 24, 2010
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update gimite/web-socket-js to dd80a1807758abfab4a0fde840f94c5d649e4a24
parent
48ffd4bc
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
562 additions
and
41 deletions
+562
-41
WebSocket.as
include/web-socket-js/flash-src/WebSocket.as
+164
-31
WebSocketMain.as
include/web-socket-js/flash-src/WebSocketMain.as
+5
-1
WebSocketMessageEvent.as
include/web-socket-js/flash-src/WebSocketMessageEvent.as
+1
-1
WebSocketStateEvent.as
include/web-socket-js/flash-src/WebSocketStateEvent.as
+1
-1
MD5.as
include/web-socket-js/flash-src/com/gsolo/encryption/MD5.as
+375
-0
web_socket.js
include/web-socket-js/web_socket.js
+16
-7
No files found.
include/web-socket-js/flash-src/WebSocket.as
View file @
35f5b11c
This diff is collapsed.
Click to expand it.
include/web-socket-js/flash-src/WebSocketMain.as
View file @
35f5b11c
// Copyright: Hiroshi Ichikawa <http://gimite.net/en/>
// Li
ncense: New BSD Lin
cense
// Li
cense: New BSD Li
cense
// Reference: http://dev.w3.org/html5/websockets/
// Reference: http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-31
...
...
@@ -73,6 +73,10 @@ public class WebSocketMain extends Sprite {
ExternalInterface
.
call
(
"webSocketLog"
,
encodeURIComponent
(
"[WebSocket] "
+
message
))
;
}
public
function
error
(
message
:
String
)
:
void
{
ExternalInterface
.
call
(
"webSocketError"
,
encodeURIComponent
(
"[WebSocket] "
+
message
))
;
}
public
function
fatal
(
message
:
String
)
:
void
{
ExternalInterface
.
call
(
"webSocketError"
,
encodeURIComponent
(
"[WebSocket] "
+
message
))
;
throw
message
;
...
...
include/web-socket-js/flash-src/WebSocketMessageEvent.as
View file @
35f5b11c
// Copyright: Hiroshi Ichikawa <http://gimite.net/en/>
// Li
ncense: New BSD Lin
cense
// Li
cense: New BSD Li
cense
// Reference: http://dev.w3.org/html5/websockets/
// Reference: http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-31
...
...
include/web-socket-js/flash-src/WebSocketStateEvent.as
View file @
35f5b11c
// Copyright: Hiroshi Ichikawa <http://gimite.net/en/>
// Li
ncense: New BSD Lin
cense
// Li
cense: New BSD Li
cense
// Reference: http://dev.w3.org/html5/websockets/
// Reference: http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-31
...
...
include/web-socket-js/flash-src/com/gsolo/encryption/MD5.as
0 → 100644
View file @
35f5b11c
This diff is collapsed.
Click to expand it.
include/web-socket-js/web_socket.js
View file @
35f5b11c
// Copyright: Hiroshi Ichikawa <http://gimite.net/en/>
// Li
ncense: New BSD Lin
cense
// Li
cense: New BSD Li
cense
// Reference: http://dev.w3.org/html5/websockets/
// Reference: http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol
...
...
@@ -58,7 +58,7 @@
var
e
;
if
(
window
.
MessageEvent
)
{
e
=
document
.
createEvent
(
"MessageEvent"
);
e
.
initMessageEvent
(
"message"
,
false
,
false
,
data
,
null
,
null
,
window
);
e
.
initMessageEvent
(
"message"
,
false
,
false
,
data
,
null
,
null
,
window
,
null
);
}
else
{
// IE
e
=
{
data
:
data
};
}
...
...
@@ -69,6 +69,14 @@
}
});
self
.
__flash
.
addEventListener
(
"error"
,
function
(
fe
)
{
try
{
if
(
self
.
onerror
)
self
.
onerror
();
}
catch
(
e
)
{
console
.
error
(
e
.
toString
());
}
});
self
.
__flash
.
addEventListener
(
"stateChange"
,
function
(
fe
)
{
try
{
self
.
readyState
=
fe
.
getReadyState
();
...
...
@@ -242,7 +250,8 @@
WebSocket
.
CONNECTING
=
0
;
WebSocket
.
OPEN
=
1
;
WebSocket
.
CLOSED
=
2
;
WebSocket
.
CLOSING
=
2
;
WebSocket
.
CLOSED
=
3
;
WebSocket
.
__tasks
=
[];
...
...
@@ -293,14 +302,14 @@
}
// called from Flash
function
webSocketLog
(
message
)
{
window
.
webSocketLog
=
function
(
message
)
{
console
.
log
(
decodeURIComponent
(
message
));
}
}
;
// called from Flash
function
webSocketError
(
message
)
{
window
.
webSocketError
=
function
(
message
)
{
console
.
error
(
decodeURIComponent
(
message
));
}
}
;
/*
if (window.addEventListener) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment