Skip to content
Closed
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
12 changes: 6 additions & 6 deletions src/Web/Socket/Event/CloseEvent.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"use strict";

exports.code = function (e) {
export function code(e) {
return e.code;
};
}

exports.reason = function (e) {
export function reason(e) {
return e.reason;
};
}

exports.wasClean = function (e) {
export function wasClean(e) {
return e.wasClean;
};
}
12 changes: 6 additions & 6 deletions src/Web/Socket/Event/MessageEvent.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"use strict";

exports.data_ = function (e) {
export function data_(e) {
return e.data;
};
}

exports.origin = function (e) {
export function origin(e) {
return e.origin;
};
}

exports.lastEventId = function (e) {
export function lastEventId(e) {
return e.lastEventId;
};
}
40 changes: 20 additions & 20 deletions src/Web/Socket/WebSocket.js
Original file line number Diff line number Diff line change
@@ -1,67 +1,67 @@
"use strict";

exports.create = function (url) {
export function create(url) {
return function (protocols) {
return function () {
return new WebSocket(url, protocols);
};
};
};
}

exports.url = function (ws) {
export function url(ws) {
return function () {
return ws.url;
};
};
}

exports.readyStateImpl = function (ws) {
export function readyStateImpl(ws) {
return function () {
return ws.readyState;
};
};
}

exports.bufferedAmount = function (ws) {
export function bufferedAmount(ws) {
return function () {
return ws.bufferedAmount;
};
};
}

exports.extensions = function (ws) {
export function extensions(ws) {
return function () {
return ws.extensions;
};
};
}

exports.protocol = function (ws) {
export function protocol(ws) {
return function () {
return ws.protocol;
};
};
}

exports.close = function (ws) {
export function close(ws) {
return function () {
return ws.close();
};
};
}

exports.getBinaryTypeImpl = function (ws) {
export function getBinaryTypeImpl(ws) {
return function () {
return ws.binaryType;
};
};
}

exports.setBinaryTypeImpl = function (ws) {
export function setBinaryTypeImpl(ws) {
return function (bt) {
return function () {
ws.binaryType = bt;
};
};
};
}

exports.sendImpl = function (ws) {
export function sendImpl(ws) {
return function (value) {
return function () {
ws.send(value);
};
};
};
}