Skip to content

Commit

Permalink
moved jsclient to the hidden .jsclient, removed yarn-error.log, added…
Browse files Browse the repository at this point in the history
… some documentation
  • Loading branch information
jerargus committed Aug 14, 2023
1 parent 8e7efa5 commit 7b24f1d
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 41 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,6 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk

# Node modules
/jsclient/node_modules
# Node
/.jsclient/node_modules
yarn-error.log
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
36 changes: 0 additions & 36 deletions jsclient/yarn-error.log

This file was deleted.

8 changes: 5 additions & 3 deletions nakama/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,12 @@ func (r *receiptsDispatcher) streamBatchOfReceipts(log runtime.Logger, startTick
}

func (r *receiptsDispatcher) getBatchOfReceiptsFromCardinal(startTick uint64) (reply *TransactionReceiptsReply, err error) {
body := map[string]any{
"start_tick": startTick,
txReceiptRequest := struct {
StartTick uint64 `json:"start_tick"`
}{
StartTick: startTick,
}
buf, err := json.Marshal(body)
buf, err := json.Marshal(txReceiptRequest)
if err != nil {
return nil, err
}
Expand Down
7 changes: 7 additions & 0 deletions nakama/match.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// match.go defines a struct that implements Nakama's runtime.Match interface.
// Matches are used to broadcast Cardinal data to connected clients. A client is 'connected' if they
// are in a Nakama match.
// See https://heroiclabs.com/docs/nakama/client-libraries/index.html for information on using Nakama client
// libraries to join matches and consume broadcasted messages.
package main

import (
Expand All @@ -10,6 +15,8 @@ import (

type ReceiptMatch struct{}

var _ runtime.Match = &ReceiptMatch{}

type ReceiptMatchState struct {
chanID string
receiptsToSend receiptChan
Expand Down

0 comments on commit 7b24f1d

Please sign in to comment.