mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Merge pull request #8108 from RReverser/patch-7
Fix chrome.sockets.tcp.getSockets
This commit is contained in:
@@ -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 {
|
||||
|
||||
Vendored
+1
-1
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user