Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Eduardo Florence
2020-12-12 23:38:25 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fa2cf43f2a3697ee7c03c2c898fcf4256901c38c
fa2cf43f
1 parent
af76035e
Declared the missing methods in BaseWebSocket (stub)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
lib/get_connect/sockets/src/sockets_stub.dart
lib/get_connect/sockets/src/sockets_stub.dart
View file @
fa2cf43
import
'./socket_notifier.dart'
;
class
BaseWebSocket
{
String
url
;
Duration
ping
;
...
...
@@ -10,7 +12,44 @@ class BaseWebSocket {
throw
'To use sockets you need dart:io or dart:html'
;
}
Future
connect
()
async
{
throw
'To use sockets you need dart:io or dart:html'
;
}
void
onOpen
(
OpenSocket
fn
)
{
throw
'To use sockets you need dart:io or dart:html'
;
}
void
onClose
(
CloseSocket
fn
)
{
throw
'To use sockets you need dart:io or dart:html'
;
}
void
onError
(
CloseSocket
fn
)
{
throw
'To use sockets you need dart:io or dart:html'
;
}
void
onMessage
(
MessageSocket
fn
)
{
throw
'To use sockets you need dart:io or dart:html'
;
}
void
on
(
String
event
,
MessageSocket
message
)
{
throw
'To use sockets you need dart:io or dart:html'
;
}
void
close
([
int
status
,
String
reason
])
{
throw
'To use sockets you need dart:io or dart:html'
;
}
void
send
(
dynamic
data
)
async
{
throw
'To use sockets you need dart:io or dart:html'
;
}
void
dispose
()
{
throw
'To use sockets you need dart:io or dart:html'
;
}
void
emit
(
String
event
,
dynamic
data
)
{
throw
'To use sockets you need dart:io or dart:html'
;
}
}
...
...
Please
register
or
login
to post a comment