fix(core): update
This commit is contained in:
parent
fa40e3a5dc
commit
aced21a968
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@apiglobal/typedsocket',
|
name: '@apiglobal/typedsocket',
|
||||||
version: '2.0.11',
|
version: '2.0.12',
|
||||||
description: 'a typedrequest extension supporting websockets'
|
description: 'a typedrequest extension supporting websockets'
|
||||||
}
|
}
|
||||||
|
@ -126,13 +126,13 @@ export class TypedSocket {
|
|||||||
this.socketServerOrClient = socketServerOrClientArg;
|
this.socketServerOrClient = socketServerOrClientArg;
|
||||||
}
|
}
|
||||||
|
|
||||||
public addTag(keyArg: string, payloadArg: any) {
|
public addTag<T extends plugins.typedrequestInterfaces.ITag = any>(nameArg: T['name'], payloadArg: T['payload']) {
|
||||||
if (
|
if (
|
||||||
this.side === 'client' &&
|
this.side === 'client' &&
|
||||||
this.socketServerOrClient instanceof plugins.smartsocket.SmartsocketClient
|
this.socketServerOrClient instanceof plugins.smartsocket.SmartsocketClient
|
||||||
) {
|
) {
|
||||||
this.socketServerOrClient.socketConnection.addTag({
|
this.socketServerOrClient.socketConnection.addTag({
|
||||||
id: keyArg,
|
id: nameArg,
|
||||||
payload: payloadArg,
|
payload: payloadArg,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user