UNPKG
@tygr/socket
Version:
beta (1.0.1)
latest (1.0.8)
1.0.8
1.0.7
1.0.6
1.0.5
1.0.3
1.0.2
1.0.1
1.0.0
Use websockets to extend redux functionality to server code
@tygr/socket
/
transmission.ts
12 lines
(9 loc)
•
291 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{
Action
}
from
'@tygr/core'
;
export
abstract
class
ClientToServerAction
implements
Action
{
abstract
readonly
type
:
string
;
sessionId
?:
string
; }
export
abstract
class
ServerToClientAction
implements
Action
{
abstract
readonly
type
:
string
;
public
sessionIds
?:
string
[]; }