platform/test/controller/common.dart
2016-12-23 15:57:46 -05:00

17 lines
No EOL
399 B
Dart

import 'package:angel_framework/angel_framework.dart';
import 'package:angel_websocket/server.dart';
class Game {
final String playerOne, playerTwo;
const Game({this.playerOne, this.playerTwo});
}
@Expose('/game')
class GameController extends WebSocketController {
@ExposeWs('search')
search(WebSocketContext socket) async {
print('OMG ok');
socket.send('searched', 'poop');
}
}