Merge pull request #8108 from RReverser/patch-7

Fix chrome.sockets.tcp.getSockets
This commit is contained in:
Masahiro Wakame
2016-02-17 21:10:34 +09:00
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -117,7 +117,7 @@ function test_socketsTcp(): void {
chrome.sockets.tcp.getInfo(socketId, (info: chrome.sockets.tcp.SocketInfo) => { });
// getSockets
chrome.sockets.tcp.getSockets(socketId, (infos: chrome.sockets.tcp.SocketInfo[]) => { });
chrome.sockets.tcp.getSockets((infos: chrome.sockets.tcp.SocketInfo[]) => { });
}
function test_socketsTcpEvents(): void {
@@ -283,7 +283,7 @@ function test_socketsTcpServer(): void {
chrome.sockets.udp.getInfo(socketId, (info: chrome.sockets.udp.SocketInfo) => { });
// getSockets
chrome.sockets.tcp.getSockets(socketId, (infos: chrome.sockets.tcp.SocketInfo[]) => { });
chrome.sockets.tcp.getSockets((infos: chrome.sockets.tcp.SocketInfo[]) => { });
}
function test_socketsTcpServerEvents(): void {
+1 -1
View File
@@ -258,7 +258,7 @@ declare module chrome.sockets.tcp {
export function send(socketId: number, data: ArrayBuffer, callback: (sendInfo: SendInfo) => void): void;
export function close(socketId: number, callback?: () => void): void;
export function getInfo(socketId: number, callback: (socketInfo: SocketInfo) => void): void;
export function getSockets(socketId: number, callback: (socketInfos: SocketInfo[]) => void): void;
export function getSockets(callback: (socketInfos: SocketInfo[]) => void): void;
var onReceive: Event<ReceiveEventArgs>;
var onReceiveError: Event<ReceiveErrorEventArgs>;