a cli repl client for pitaya, great for testing servers during development
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
vendor Update dep dependences Feb 14, 2019
.gitignore Pesistent history enabled Apr 25, 2018
Gopkg.lock Update dep dependences Feb 14, 2019
LICENSE initial commit Apr 13, 2018
Makefile fix for issue #1 Apr 19, 2018
README.md Make compatible with protobuffers servers. (#5) Dec 17, 2018
main.go Working with standard protos Dec 20, 2018



A REPL cli client made in go for pitaya.


go get -u github.com/topfreegames/pitaya-cli


$ pitaya-cli

Pitaya REPL Client
>>> help

  clear           clear the screen
  connect         connects to pitaya
  disconnect      disconnects from pitaya server
  exit            exit the program
  help            display help
  notify          makes a notify to pitaya server
  request         makes a request to pitaya server

For connecting to a protobuffer server specify the documentation route with the -docs argument:

pitaya-cli -docs connector.docsHandler.docs

Protobuffer servers must implement handlers for protobuf descriptors and auto documentation.

A full example of running pitaya-cli with protobuffers:

pitaya-cli -docs connector.docsHandler.docs
>>> push connector.playerHandler.matchfound protos.FindMatchPush
>>> connect localhost:30124
>>> request connector.playerHandler.create
>>> request connector.playerHandler.findmatch {"RoomType":"xxxx"}

This example can be run with the pitaya-bot protobuffer testing example.